Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Usage
tutor plugins enable notifications


The email and push notification settings under Account can be enabled/disabled using `NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL`
and `NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL`. `NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL` is set to True while `NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL`
is set to False by default.

License
*******

Expand Down
3 changes: 2 additions & 1 deletion tutornotifications/patches/mfe-lms-production-settings
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

MFE_CONFIG["SHOW_EMAIL_CHANNEL"] = True
MFE_CONFIG["SHOW_EMAIL_CHANNEL"] = {{ NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL }}
MFE_CONFIG["SHOW_PUSH_CHANNEL"] = {{ NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL }}
3 changes: 2 additions & 1 deletion tutornotifications/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# Each new setting is a pair: (setting_name, default_value).
# Prefix your setting names with 'NOTIFICATIONS_'.
("NOTIFICATIONS_VERSION", __version__),
("NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL", True),
("NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL", False),
]
)

Expand Down Expand Up @@ -133,6 +135,5 @@
"org.openedx.frontend.layout.studio_header_search_button_slot.v1",
notification_drawer_config,
),

],
)