Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_settings: Add text in the left panel.
sujal shah333eedb351e1
diff --git a/web/src/stream_settings_ui.js b/web/src/stream_settings_ui.jsindex 0f3c22f626d..02b5f19ea8e 100644--- a/web/src/stream_settings_ui.js+++ b/web/src/stream_settings_ui.js@@ -420,6 +420,17 @@ export function update_empty_left_panel_message() {} else {has_streams = stream_data.get_unsorted_subs().length;}++ const has_hidden_streams =+ $("#channels_overlay_container .stream-row:not(.notdisplayed)").length === 0;+ const has_search_query = $("#stream_filter input[type='text']").val().trim() !== "";+ // Show "no channels match" text if all channels are hidden and there's a search query.+ if (has_hidden_streams && has_search_query) {+ $(".no-streams-to-show").children().hide();+ $(".no_stream_match_filter_empty_text").show();+ $(".no-streams-to-show").show();+ return;+ }if (has_streams) {$(".no-streams-to-show").hide();return;diff --git a/web/templates/stream_settings/stream_settings_overlay.hbs b/web/templates/stream_settings/stream_settings_overlay.hbsindex 955eb2d9d08..9f6599a92d3 100644--- a/web/templates/stream_settings/stream_settings_overlay.hbs+++ b/web/templates/stream_settings/stream_settings_overlay.hbs@@ -41,6 +41,11 @@<a href="#channels/all">{{t 'View all channels'}}</a></span></div>+ <div class="no_stream_match_filter_empty_text">+ <span class="settings-empty-option-text">+ {{t 'No channels match your filter.'}}+ </span>+ </div><div class="all_streams_tab_empty_text"><span class="settings-empty-option-text">{{t 'There are no channels you can view in this organization.'}}