stream_settings: Fix invisible view stream btn for private streams.

If new stream is created as one of the two private options, the view stream button was not visible 
immediately, but does appear after a page refresh. This bug turns out to be caused by the wrong
selector being used in the code intended to make the button visible.

Fixes: #22556.
This commit is contained in:
Rishant Rokaha
2022-12-14 15:44:00 -05:00
committed by GitHub
parent 38587b79b9
commit eed13cecff

View File

@@ -303,7 +303,7 @@ export function update_settings_for_subscribed(slim_sub) {
const sub = stream_settings_data.get_sub_for_settings(slim_sub);
stream_ui_updates.update_add_subscriptions_elements(sub);
$(
`.subscription_settings[data-stream-id='${CSS.escape(
`.stream_settings_header[data-stream-id='${CSS.escape(
sub.stream_id,
)}'] #preview-stream-button`,
).show();