From 9327732b4cb753460aba49253bbcf02fbc82bb5e Mon Sep 17 00:00:00 2001 From: sokumon Date: Tue, 30 Dec 2025 17:58:00 +0530 Subject: [PATCH] fix: move dropdown options to sidebar dropdown --- frappe/hooks.py | 47 ------------------- frappe/public/js/frappe/ui/menu.js | 4 +- .../js/frappe/ui/sidebar/sidebar_header.js | 39 ++++++++++++--- frappe/public/js/frappe/ui/theme_switcher.js | 4 ++ 4 files changed, 40 insertions(+), 54 deletions(-) diff --git a/frappe/hooks.py b/frappe/hooks.py index f530e241a4..966b80649d 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -475,53 +475,6 @@ standard_navbar_items = [ "action": "frappe.ui.toolbar.route_to_user()", "is_standard": 1, }, - { - "item_label": "Workspace Settings", - "item_type": "Action", - "action": "frappe.quick_edit('Workspace Settings')", - "is_standard": 1, - }, - { - "item_label": "Session Defaults", - "item_type": "Action", - "action": "frappe.ui.toolbar.setup_session_defaults()", - "is_standard": 1, - }, - { - "item_label": "Reload", - "item_type": "Action", - "action": "frappe.ui.toolbar.clear_cache()", - "is_standard": 1, - }, - { - "item_label": "View Website", - "item_type": "Action", - "action": "frappe.ui.toolbar.view_website()", - "is_standard": 1, - }, - { - "item_label": "Apps", - "item_type": "Route", - "route": "/apps", - "is_standard": 1, - }, - { - "item_label": "Toggle Full Width", - "item_type": "Action", - "action": "frappe.ui.toolbar.toggle_full_width()", - "is_standard": 1, - }, - { - "item_label": "Toggle Theme", - "item_type": "Action", - "action": "new frappe.ui.ThemeSwitcher().show()", - "is_standard": 1, - }, - { - "item_type": "Separator", - "is_standard": 1, - "item_label": "", - }, { "item_label": "Log out", "item_type": "Action", diff --git a/frappe/public/js/frappe/ui/menu.js b/frappe/public/js/frappe/ui/menu.js index c7a6680a78..1db826380e 100644 --- a/frappe/public/js/frappe/ui/menu.js +++ b/frappe/public/js/frappe/ui/menu.js @@ -56,7 +56,9 @@ frappe.ui.menu = class ContextMenu { ? `` : ""; - item_wrapper = $(`