Skip to content

Commit 2db42bd

Browse files
Merge branch 'main' into ahtisham/added_email_config
2 parents bee60a4 + 2b03ccc commit 2db42bd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ After changing configuration,restart environment so the new environment variable
3333
If you rely on a specific "from" email for outgoing notifications, explicitly set ``NOTIFICATIONS_DEFAULT_FROM_EMAIL`` rather than relying on the platform-wide ``CONTACT_EMAIL``.
3434

3535

36+
The email and push notification settings under Account can be enabled/disabled using `NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL`
37+
and `NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL`. `NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL` is set to True while `NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL`
38+
is set to False by default.
39+
3640
License
3741
*******
3842

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11

2-
MFE_CONFIG["SHOW_EMAIL_CHANNEL"] = True
2+
MFE_CONFIG["SHOW_EMAIL_CHANNEL"] = {{ NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL }}
3+
MFE_CONFIG["SHOW_PUSH_CHANNEL"] = {{ NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL }}

tutornotifications/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# Prefix your setting names with 'NOTIFICATIONS_'.
1919
("NOTIFICATIONS_VERSION", __version__),
2020
("NOTIFICATIONS_DEFAULT_FROM_EMAIL", "{{ CONTACT_EMAIL }}")
21+
("NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL", True),
22+
("NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL", False),
2123
]
2224
)
2325

@@ -134,6 +136,5 @@
134136
"org.openedx.frontend.layout.studio_header_search_button_slot.v1",
135137
notification_drawer_config,
136138
),
137-
138139
],
139140
)

0 commit comments

Comments
 (0)