From 9decaeda0aa182ea9a1b0d6f990d89576fccaa2e Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 8 Jun 2021 14:21:41 +0000 Subject: [PATCH] subs: Explicitly show right section when required. Instead of just depending upon clicks of certain buttons to show the right section, we also show them when user is creating a new stream or viewing settings of a specific stream. This fixes a bug where user lands on `#streams/new` via url change without clicking of any buttons and sees on left section of the overlay in medium width (756px) devices. --- static/js/subs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/subs.js b/static/js/subs.js index 9502911871..fe6f58ac33 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -698,6 +698,7 @@ export function change_state(section) { if (section === "new") { if (!page_params.is_guest) { do_open_create_stream(); + show_right_section(); } else { toggler.goto("subscribed"); } @@ -723,6 +724,7 @@ export function change_state(section) { if (page_params.is_guest && !stream_data.id_is_subscribed(stream_id)) { toggler.goto("subscribed"); } else { + show_right_section(); switch_to_stream_row(stream_id); } return;