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: Add code to live update right panel title on stream rename.

Sahil Batra228077716871
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js
index 7de3372543f..93f8ac38dfa 100644
--- a/static/js/stream_edit.js
+++ b/static/js/stream_edit.js
@@ -155,6 +155,11 @@ export function update_stream_name(sub, new_name) {
const edit_container = stream_settings_containers.get_edit_container(sub);
edit_container.find(".email-address").text(sub.email_address);
edit_container.find(".sub-stream-name").text(new_name);
+
+ const active_data = stream_settings_ui.get_active_data();
+ if (active_data.id === sub.stream_id) {
+ stream_settings_ui.set_right_panel_title(sub);
+ }
}
export function update_stream_description(sub) {