mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
settings: Simplify logic to show push notification tooltip in templates.
Instead of having logical expressions in templates, it's always preferred to calculating them in javascript and pass the results as a context. It also enhances the readability of templates and testing of such logic is easier in js over templates.
This commit is contained in:
committed by
Tim Abbott
parent
1871443d10
commit
83933034a4
@@ -3,10 +3,14 @@ zrequire('muting');
|
||||
zrequire('people');
|
||||
zrequire('stream_data');
|
||||
zrequire('unread');
|
||||
|
||||
set_global('page_params', {
|
||||
realm_push_notifications_enabled: false,
|
||||
});
|
||||
zrequire('settings_notifications');
|
||||
|
||||
const FoldDict = zrequire('fold_dict').FoldDict;
|
||||
|
||||
set_global('page_params', {});
|
||||
set_global('blueslip', {});
|
||||
set_global('narrow_state', {});
|
||||
set_global('current_msg_list', {});
|
||||
|
||||
Reference in New Issue
Block a user