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-settings: Fix stream settings panel title not updating.

Pratik Chandaf96ad02454af
diff --git a/web/src/stream_settings_ui.js b/web/src/stream_settings_ui.js
index 35aaf42db1a..16ea2a198f1 100644
--- a/web/src/stream_settings_ui.js
+++ b/web/src/stream_settings_ui.js
@@ -469,7 +469,10 @@ export function redraw_left_panel(left_panel_params = get_left_panel_params()) {
.get_content_element($("#streams_overlay_container .streams-list"))
.append(widgets.get(stream_id));
}
- maybe_reset_right_panel();
+
+ if ($(".stream-row.active").hasClass("notdisplayed")) {
+ stream_edit.empty_right_panel();
+ }
update_empty_left_panel_message();
// return this for test convenience
@@ -489,14 +492,6 @@ export function get_left_panel_params() {
return params;
}
-export function maybe_reset_right_panel() {
- if ($(".stream-row.active").hasClass("notdisplayed")) {
- $(".right .settings").hide();
- $(".nothing-selected").show();
- $(".stream-row.active").removeClass("active");
- }
-}
-
// Make it explicit that our toggler is not created right away.
export let toggler;