Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Gate display options on show_channel_display_options.
Alex Vandiver79c1d3660602
diff --git a/web/src/channel_folders_popover.ts b/web/src/channel_folders_popover.tsindex dcf02b37e0a..6f4217c48d1 100644--- a/web/src/channel_folders_popover.ts+++ b/web/src/channel_folders_popover.ts@@ -144,6 +144,7 @@ export function initialize(): void {onShow(instance) {const show_channel_folders = user_settings.web_left_sidebar_show_channel_folders;const show_collapse_expand_all_options = true;+ const show_channel_display_options = true;// Assuming that the instance can be shown, track and// prep the instance for showingpopover_menus.popover_instances.show_folders_sidebar = instance;@@ -153,6 +154,7 @@ export function initialize(): void {show_channel_folders,channel_folders_id: "left_sidebar_channel_folders",show_collapse_expand_all_options,+ show_channel_display_options,web_stream_unreads_count_display_policy_values:settings_config.web_stream_unreads_count_display_policy_values,web_stream_unreads_count_display_policy:@@ -192,6 +194,7 @@ export function initialize(): void {onShow(instance) {const show_channel_folders = user_settings.web_inbox_show_channel_folders;const show_collapse_expand_all_options = false;+ const show_channel_display_options = false;// Assuming that the instance can be shown, track and// prep the instance for showingpopover_menus.popover_instances.show_folders_inbox = instance;@@ -201,6 +204,7 @@ export function initialize(): void {show_channel_folders,channel_folders_id: "inbox_channel_folders",show_collapse_expand_all_options,+ show_channel_display_options,}),),);diff --git a/web/templates/popovers/left_sidebar_menu_popover.hbs b/web/templates/popovers/left_sidebar_menu_popover.hbsindex 13406f6f366..eee56851002 100644--- a/web/templates/popovers/left_sidebar_menu_popover.hbs+++ b/web/templates/popovers/left_sidebar_menu_popover.hbs@@ -24,6 +24,7 @@{{/if}}</a></li>+ {{#if show_channel_display_options}}<li role="separator" class="popover-menu-separator"></li><li role="none" class="link-item"><label class="display-style-selector-header popover-menu-link" role="menuitem">@@ -57,5 +58,6 @@</label></li>{{/each}}+ {{/if}}</ul></div>