Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
buttons: Modify the styles of buttons in stream settings.
Maneesh Shukla5b1ddf35ba93
diff --git a/web/src/stream_ui_updates.ts b/web/src/stream_ui_updates.tsindex 58d42e0cef1..a171b13b75a 100644--- a/web/src/stream_ui_updates.ts+++ b/web/src/stream_ui_updates.ts@@ -198,9 +198,15 @@ export function update_settings_button_for_sub(sub: StreamSubscription): void {}if (sub.subscribed) {- $settings_button.text($t({defaultMessage: "Unsubscribe"})).removeClass("unsubscribed");+ $settings_button+ .text($t({defaultMessage: "Unsubscribe"}))+ .removeClass("unsubscribed action-button-quiet-brand")+ .addClass("action-button-quiet-neutral");} else {- $settings_button.text($t({defaultMessage: "Subscribe"})).addClass("unsubscribed");+ $settings_button+ .text($t({defaultMessage: "Subscribe"}))+ .addClass("unsubscribed action-button-quiet-brand")+ .removeClass("action-button-quiet-neutral");}if (stream_data.can_toggle_subscription(sub)) {$settings_button.prop("disabled", false);diff --git a/web/templates/stream_settings/stream_settings.hbs b/web/templates/stream_settings/stream_settings.hbsindex 2e94906f7f5..7215455c858 100644--- a/web/templates/stream_settings/stream_settings.hbs+++ b/web/templates/stream_settings/stream_settings.hbs@@ -11,7 +11,7 @@{{/tr}}</span></template>- <button class="action-button action-button-quiet-brand subscribe-button sub_unsub_button {{#if should_display_subscription_button}}toggle-subscription-tooltip{{/if}} {{#unless subscribed }}unsubscribed{{/unless}}" type="button" name="button" data-tooltip-template-id="toggle-subscription-tooltip-template" {{#unless should_display_subscription_button}}disabled="disabled"{{/unless}}>+ <button class="action-button subscribe-button sub_unsub_button {{#if subscribed}}action-button-quiet-neutral{{else}}action-button-quiet-brand{{/if}} {{#if should_display_subscription_button}}toggle-subscription-tooltip{{/if}} {{#unless subscribed }}unsubscribed{{/unless}}" type="button" name="button" data-tooltip-template-id="toggle-subscription-tooltip-template" {{#unless should_display_subscription_button}}disabled="disabled"{{/unless}}>{{#if subscribed }}{{t "Unsubscribe" }}{{else}}@@ -22,7 +22,7 @@{{> ../components/action_buttonicon="eye"attention="quiet"- intent="info"+ intent="neutral"custom_classes="tippy-zulip-delayed-tooltip"data-tooltip-template-id="view-stream-tooltip-template"id="preview-stream-button"