Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

desktop-notification-banner: Remove the banner form the org settings.

Maneesh Shukla74148f2e0bad
diff --git a/web/src/settings_notifications.ts b/web/src/settings_notifications.ts
index 06ac5896e23..a1619d30bea 100644
--- a/web/src/settings_notifications.ts
+++ b/web/src/settings_notifications.ts
@@ -388,8 +388,6 @@ export function set_up(settings_panel: SettingsPanel): void {
settings_object.automatically_unmute_topics_in_muted_streams_policy,
);
- update_desktop_notification_banner();
-
$container.on("click", ".desktop-notifications-request", (e) => {
e.preventDefault();
// This is only accessed via the notifications banner, so we
diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbs
index 8016f33ae7b..bc28ac9c26e 100644
--- a/web/templates/settings/notification_settings.hbs
+++ b/web/templates/settings/notification_settings.hbs
@@ -131,7 +131,9 @@
{{> settings_save_discard_widget section_name="desktop-message-settings" show_only_indicator=(not for_realm_settings) }}
</div>
+ {{#if (eq prefix "user_")}}
<div class="desktop-notification-settings-banners banner-wrapper"></div>
+ {{/if}}
{{#unless for_realm_settings}}
{{> ../components/action_button