right_sidebar_ui: Extract new module.

This UI is not actually a popover, and so there is no need for it to
live in popovers.js.
This commit is contained in:
Tim Abbott
2023-09-24 21:20:32 -07:00
parent 8de397b37f
commit c379d0bad6
8 changed files with 26 additions and 18 deletions

View File

@@ -30,6 +30,7 @@ import * as pm_list from "./pm_list";
import * as popovers from "./popovers";
import * as reactions from "./reactions";
import * as recent_view_ui from "./recent_view_ui";
import * as right_sidebar_ui from "./right_sidebar_ui";
import * as rows from "./rows";
import * as server_events from "./server_events";
import * as settings_display from "./settings_display";
@@ -495,7 +496,7 @@ export function initialize() {
const sidebarHidden = !$(".app-main .column-right").hasClass("expanded");
popovers.hide_all();
if (sidebarHidden) {
popovers.show_userlist_sidebar();
right_sidebar_ui.show_userlist_sidebar();
}
});