Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings_notifications: Enable muted stream notification settings.
Pratik137505e2ad8d
diff --git a/web/src/settings_notifications.js b/web/src/settings_notifications.jsindex a620578b248..16072fd71ca 100644--- a/web/src/settings_notifications.js+++ b/web/src/settings_notifications.js@@ -343,16 +343,14 @@ export function update_muted_stream_state(sub) {)}']`,);- $row.toggleClass("control-label-disabled", sub.is_muted);if (sub.is_muted) {$row.find(".unmute_stream").show();} else {$row.find(".unmute_stream").hide();}- $row.find("input").prop("disabled", sub.is_muted);$row.find('[name="push_notifications"]').prop("disabled",- !page_params.realm_push_notifications_enabled || sub.is_muted,+ !page_params.realm_push_notifications_enabled,);}diff --git a/web/templates/settings/notification_settings_checkboxes.hbs b/web/templates/settings/notification_settings_checkboxes.hbsindex e94906ab7ea..841b6456cbf 100644--- a/web/templates/settings/notification_settings_checkboxes.hbs+++ b/web/templates/settings/notification_settings_checkboxes.hbs@@ -1,7 +1,7 @@<td><label class="checkbox"><input type="checkbox" name="{{setting_name}}" id="{{prefix}}{{setting_name}}"- {{#if (or is_muted is_disabled)}} disabled {{/if}}+ {{#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></span>diff --git a/web/templates/settings/stream_specific_notification_row.hbs b/web/templates/settings/stream_specific_notification_row.hbsindex df2c6b711a1..30858b98f20 100644--- a/web/templates/settings/stream_specific_notification_row.hbs+++ b/web/templates/settings/stream_specific_notification_row.hbs@@ -1,4 +1,4 @@-<tr class="stream-notifications-row {{#if muted}}control-label-disabled{{/if}}" data-stream-id="{{stream.stream_id}}">+<tr class="stream-notifications-row" data-stream-id="{{stream.stream_id}}"><td><span class="stream-privacy-original-color-{{stream.stream_id}} stream-privacy filter-icon" style="color: {{stream.color}}">{{> ../stream_privacy@@ -15,7 +15,6 @@prefix=(lookup ../stream "stream_id")is_checked=(lookup ../stream this)is_disabled=(lookup ../is_disabled this)- is_muted=../muted}}{{/each}}</tr>