Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
notification_settings: Add banner when push notification not configured.
Sayam Samalc7e23063805a
diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 3d7bea5e661..08fddde4f4f 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -489,6 +489,11 @@ input[type="checkbox"] {.subsection-header h3 {display: inline-block;}++ .tip {+ width: fit-content;+ margin-top: 0;+ }}#stream-specific-notify-table .unmute_stream {diff --git a/web/templates/settings/notification_settings.hbs b/web/templates/settings/notification_settings.hbsindex a0a8802909d..94fc5a8a1d9 100644--- a/web/templates/settings/notification_settings.hbs+++ b/web/templates/settings/notification_settings.hbs@@ -136,6 +136,14 @@</h3>{{> settings_save_discard_widget section_name="mobile-message-settings" show_only_indicator=(not for_realm_settings) }}</div>+ {{#unless realm_push_notifications_enabled}}+ <div class="tip">+ {{#tr}}+ Mobile push notifications are not enabled on this server. <z-link>Learn more</z-link>+ {{#*inline "z-link"}}<a href="/help/mobile-notifications#enabling-push-notifications-for-self-hosted-servers">{{> @partial-block}}</a>{{/inline}}+ {{/tr}}+ </div>+ {{/unless}}{{#each notification_settings.mobile_notification_settings}}{{> settings_checkbox