Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_edit: Open subscribers tab on clicking subscribers count.

whilstsomebody3a22dbea4d8b
diff --git a/web/src/stream_edit.ts b/web/src/stream_edit.ts
index 1483049767f..56fcdc87766 100644
--- a/web/src/stream_edit.ts
+++ b/web/src/stream_edit.ts
@@ -665,12 +665,23 @@ export function initialize(): void {
$(".dialog_submit_button").attr("data-stream-id", stream_id);
});
- $("#channels_overlay_container").on("click", ".stream-row", function (this: HTMLElement) {
- if ($(this).closest(".check, .subscription_settings").length === 0) {
- open_edit_panel_for_row(this);
- }
+ $("#channels_overlay_container").on("click", ".stream-row", function (this: HTMLElement, e) {
+ e.preventDefault();
+ e.stopPropagation();
+ open_edit_panel_for_row(this);
});
+ $("#channels_overlay_container").on(
+ "click",
+ ".subscriber-count",
+ function (this: HTMLElement, e) {
+ e.preventDefault();
+ e.stopPropagation();
+ stream_edit_toggler.set_select_tab("subscribers");
+ open_edit_panel_for_row(this);
+ },
+ );
+
$<HTMLSelectElement>("#channels_overlay_container").on(
"change",
"select.stream_message_retention_setting",