fix: update sidebar for private workspace

This commit is contained in:
sokumon 2024-12-31 17:44:56 +05:30
parent 24505f1cfa
commit 41f220d092
2 changed files with 2 additions and 2 deletions

View file

@ -149,6 +149,6 @@ frappe.ui.AppsSwitcher = class AppsSwitcher {
frappe.current_app = app;
// re-render the sidebar
this.make_sidebar();
frappe.app.sidebar.make_sidebar();
}
};

View file

@ -546,7 +546,7 @@ frappe.views.Workspace = class Workspace {
if (!frappe.boot.app_data_map["private"] && new_page.public === 0) {
let app_switcher_menu = $(".app-switcher-menu");
this.sidebar.add_private_app(app_switcher_menu);
this.sidebar.apps_switcher.add_private_app(app_switcher_menu);
}
resolve();
}