stream-settings: Add code to live update right panel title on stream rename.

This commit is contained in:
Sahil Batra 2022-01-27 13:28:28 +05:30 committed by Tim Abbott
parent 74294ae602
commit 2280777168
1 changed files with 5 additions and 0 deletions

View File

@ -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) {