settings: Migrate mobile notification tooltips to a common template.

This commit is contained in:
Sayam Samal 2023-11-23 03:44:29 +05:30 committed by Tim Abbott
parent 15b3ad7466
commit 31cc47cbd7
3 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<th rowspan="2" width="14%" class="{{#if show_push_notifications_tooltip.push_notifications}}control-label-disabled{{/if}}">
{{t "Mobile"}}
{{#if (not realm_push_notifications_enabled) }}
<i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tippy-content="{{t 'Mobile push notifications are not configured on this server.' }}"></i>
<i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template"></i>
{{/if}}
</th>
<th rowspan="2" width="14%">{{t "Email"}}</th>

View File

@ -20,7 +20,7 @@
{{!-- Tooltips for settings --}}
{{#if (eq setting_name "push_notifications")}}
<i class="fa fa-question-circle settings-info-icon {{#unless disabled_realm_setting}}hide{{/unless}} tippy-zulip-tooltip"
data-tippy-content="{{t 'Mobile push notifications are not configured on this server.' }}">
data-tooltip-template-id="mobile-push-notification-tooltip-template">
</i>
{{/if}}
</div>

View File

@ -204,3 +204,6 @@
{{t 'View stream' }}
{{tooltip_hotkey_hints "Shift" "V"}}
</template>
<template id="mobile-push-notification-tooltip-template">
{{t 'Mobile push notifications are not configured on this server.' }}
</template>