mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
stream_settings: Make the right panel empty according to the URL hash.
We now make the right panel empty if the URL hash is changed to "#streams/all" or "#streams/subscribed" either manually or by using the browser back button. We call the function to make the right panel empty in change_state and not in the callback function for toggler.goto because the right panel empty becomes empty due to change in hash and not due to toggling between subscribed and all streams.
This commit is contained in:
@@ -93,11 +93,15 @@ export function open_edit_panel_for_row(stream_row) {
|
||||
setup_stream_settings(stream_row);
|
||||
}
|
||||
|
||||
export function open_edit_panel_empty() {
|
||||
const tab_key = stream_settings_components.get_active_data().$tabs.first().attr("data-tab-key");
|
||||
export function empty_right_panel() {
|
||||
$(".stream-row.active").removeClass("active");
|
||||
$("#subscription_overlay .right").removeClass("show");
|
||||
stream_settings_components.show_subs_pane.nothing_selected();
|
||||
}
|
||||
|
||||
export function open_edit_panel_empty() {
|
||||
const tab_key = stream_settings_components.get_active_data().$tabs.first().attr("data-tab-key");
|
||||
empty_right_panel();
|
||||
setup_subscriptions_tab_hash(tab_key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user