Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_settings: Display No channel text when no channel present.
sujal shah6c437eda7758
diff --git a/web/src/stream_settings_ui.js b/web/src/stream_settings_ui.jsindex a30d5b38d72..2976bc41973 100644--- a/web/src/stream_settings_ui.js+++ b/web/src/stream_settings_ui.js@@ -431,6 +431,10 @@ export function update_empty_left_panel_message() {has_streams =stream_data.subscribed_subs().length ||$("#channels_overlay_container .stream-row:not(.notdisplayed)").length;+ } else if (stream_ui_updates.is_not_subscribed_stream_tab_active()) {+ has_streams =+ stream_data.unsubscribed_subs().length ||+ $("#channels_overlay_container .stream-row:not(.notdisplayed)").length;} else {has_streams = stream_data.get_unsorted_subs().length;}@@ -438,11 +442,12 @@ export function update_empty_left_panel_message() {$(".no-streams-to-show").hide();return;}+ $(".no-streams-to-show").children().hide();if (stream_ui_updates.is_subscribed_stream_tab_active()) {- $(".all_streams_tab_empty_text").hide();$(".subscribed_streams_tab_empty_text").show();+ } else if (stream_ui_updates.is_not_subscribed_stream_tab_active()) {+ $(".not_subscribed_streams_tab_empty_text").show();} else {- $(".subscribed_streams_tab_empty_text").hide();$(".all_streams_tab_empty_text").show();}$(".no-streams-to-show").show();diff --git a/web/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbsindex f4b92804aee..a488de88dba 100644--- a/web/templates/stream_settings/stream_settings_overlay.hbs+++ b/web/templates/stream_settings/stream_settings_overlay.hbs@@ -35,6 +35,12 @@{{/if}}</span></div>+ <div class="not_subscribed_streams_tab_empty_text">+ <span>+ {{t 'No channels to show.'}}+ <a href="#channels/all">{{t 'View all channels'}}</a>+ </span>+ </div><div class="all_streams_tab_empty_text"><span>{{t 'There are no channels you can view in this organization.'}}