popovers: Fix name for sidebar channel folders popover.

This commit is contained in:
Evy Kassirer
2025-10-08 16:19:09 -07:00
committed by Tim Abbott
parent 36b3d24ee6
commit ab8f6891d6
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ export function initialize(): void {
const show_channel_folders = user_settings.web_left_sidebar_show_channel_folders; const show_channel_folders = user_settings.web_left_sidebar_show_channel_folders;
// Assuming that the instance can be shown, track and // Assuming that the instance can be shown, track and
// prep the instance for showing // prep the instance for showing
popover_menus.popover_instances.show_channels_sidebar = instance; popover_menus.popover_instances.show_folders_sidebar = instance;
instance.setContent( instance.setContent(
parse_html( parse_html(
render_left_sidebar_channels_folder_setting_popover({show_channel_folders}), render_left_sidebar_channels_folder_setting_popover({show_channel_folders}),
@@ -48,7 +48,7 @@ export function initialize(): void {
}, },
onHidden(instance) { onHidden(instance) {
instance.destroy(); instance.destroy();
popover_menus.popover_instances.show_channels_sidebar = null; popover_menus.popover_instances.show_folders_sidebar = null;
}, },
}); });
} }

View File

@@ -33,7 +33,7 @@ type PopoverName =
| "buddy_list" | "buddy_list"
| "stream_actions_popover" | "stream_actions_popover"
| "color_picker_popover" | "color_picker_popover"
| "show_channels_sidebar" | "show_folders_sidebar"
| "send_later_options"; | "send_later_options";
export const popover_instances: Record<PopoverName, tippy.Instance | null> = { export const popover_instances: Record<PopoverName, tippy.Instance | null> = {
@@ -56,7 +56,7 @@ export const popover_instances: Record<PopoverName, tippy.Instance | null> = {
buddy_list: null, buddy_list: null,
stream_actions_popover: null, stream_actions_popover: null,
color_picker_popover: null, color_picker_popover: null,
show_channels_sidebar: null, show_folders_sidebar: null,
send_later_options: null, send_later_options: null,
}; };