Files
zulip/web/templates/settings/notification_settings_checkboxes.hbs
Saubhagya Patel 45f38795e9 settings: Add push_notifications_disabled in notification checkboxes.
This commit adds a variable `push_notifications_disabled` to the
checkboxes used in the notifications table in Settings > Notifications.
The variable is used to control the mobile push notifications
disabled tooltip.
2025-06-09 13:50:55 -07:00

12 lines
623 B
Handlebars

<td>
<span {{#if (and is_mobile_checkbox push_notifications_disabled)}} class="tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template"{{/if}}>
<label class="checkbox">
<input type="checkbox" name="{{setting_name}}" id="{{prefix}}{{setting_name}}"
{{#if is_disabled}} disabled {{/if}}
{{#if is_checked}}checked="checked"{{/if}} data-setting-widget-type="boolean"
class="{{setting_name}}{{#unless is_disabled}} prop-element{{/unless}}"/>
<span class="rendered-checkbox"></span>
</label>
</span>
</td>