Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Make clicking "Channel color" label open color picker.
Kartikay58496edbca981d72
diff --git a/web/src/color_picker_popover.ts b/web/src/color_picker_popover.tsindex 422d9d2e6b5..17f64278253 100644--- a/web/src/color_picker_popover.ts+++ b/web/src/color_picker_popover.ts@@ -235,4 +235,14 @@ export function initialize(): void {toggle_color_picker_popover(target ?? this, stream_id);},);+ $("body").on(+ "click",+ ".channel-color-label",+ function (this: HTMLElement, e: JQuery.ClickEvent) {+ e.stopPropagation();+ e.preventDefault();+ const $button = $(this).siblings(".choose_stream_color");+ $button.trigger("click");+ },+ );}diff --git a/web/templates/stream_settings/stream_settings.hbs b/web/templates/stream_settings/stream_settings.hbsindex 314bbfb6194..5cd72350bf7 100644--- a/web/templates/stream_settings/stream_settings.hbs+++ b/web/templates/stream_settings/stream_settings.hbs@@ -121,7 +121,7 @@</div>{{/each}}<div class="input-group">- <label class="settings-field-label">{{t "Channel color" }}</label>+ <label class="settings-field-label channel-color-label">{{t "Channel color" }}</label><button class="button small rounded stream-settings-color-selector choose_stream_color" data-stream-id="{{ sub.stream_id }}"><span class="stream-settings-color-preview" style="background: {{sub.color}};"></span><span class="stream-settings-color-selector-label">{{t "Change color"}}</span>