Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sidebar_ui: Show all views if searched term matches header name.
Aman Agrawal069a5ef949e9
diff --git a/web/src/sidebar_ui.ts b/web/src/sidebar_ui.tsindex a1dc2a98902..255cd292f21 100644--- a/web/src/sidebar_ui.ts+++ b/web/src/sidebar_ui.ts@@ -308,8 +308,12 @@ export function update_expanded_views_for_search(search_term: string): void {let any_view_visible = false;const expanded_views = left_sidebar_navigation_area.get_built_in_views();+ const show_all_views = util.prefix_match({+ value: LEFT_SIDEBAR_NAVIGATION_AREA_TITLE,+ search_term,+ });for (const view of expanded_views) {- let show_view = util.prefix_match({+ let show_view = show_all_views || util.prefix_match({value: view.name,search_term,});