mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
stream-settings: Set show_not_subscribed value when opening overlay.
We reset the internal state while opening the stream settings overlay to reflect that "Subscribed" tab will be selected. We did set show_subscribed value to "True" but did not set show_not_subscribed value to "False". Due to this opening the overlay, after closing the overlay when "Not subscribed" tab was selected, resulted in left panel being shown empty with "Subscribed" tab selected even when there were subscribed streams because both show_subscribed and show_not_subscribed were set to "True". This commit fixes it by setting show_not_subscribed to "False" as well when resetting the state.
This commit is contained in:
@@ -816,6 +816,7 @@ function setup_page(callback: () => void): void {
|
||||
// Reset our internal state to reflect that we're initially in
|
||||
// the "Subscribed" tab if we're reopening "Stream settings".
|
||||
stream_ui_updates.set_show_subscribed(true);
|
||||
stream_ui_updates.set_show_not_subscribed(false);
|
||||
toggler = components.toggle({
|
||||
child_wants_focus: true,
|
||||
values: [
|
||||
|
||||
Reference in New Issue
Block a user