diff options
author | Mario <mario@mariovavti.com> | 2024-07-10 08:52:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-10 08:52:23 +0000 |
commit | 78e68519e89e235db0e5d54982f1ea3aba4b3654 (patch) | |
tree | e4f768e7de014e2dba0a1973b800286edde67144 /view | |
parent | d2b06995c7bf14f0ba972099f6bfcd264d4ed0af (diff) | |
download | volse-hubzilla-78e68519e89e235db0e5d54982f1ea3aba4b3654.tar.gz volse-hubzilla-78e68519e89e235db0e5d54982f1ea3aba4b3654.tar.bz2 volse-hubzilla-78e68519e89e235db0e5d54982f1ea3aba4b3654.zip |
do not handle non sys notifications if we are in sys only mode
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/notifications_widget.tpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 30547da97..0b3b463bc 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -319,6 +319,10 @@ }); } + if (sse_sys_only) { + return; + } + let primary_notifications = ['dm', 'home', 'intros', 'register', 'notify', 'files']; let secondary_notifications = ['network', 'forums', 'all_events', 'pubs']; let all_notifications = primary_notifications.concat(secondary_notifications); @@ -329,7 +333,6 @@ var count = Number(obj[type].count); - if(obj[type].count) { $('.' + type + '-button').fadeIn(); if(replace || followup) { |