diff --git a/frappe/hooks.py b/frappe/hooks.py index 7af56e2c19..719d94d3c4 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -471,21 +471,6 @@ get_changelog_feed = "frappe.desk.doctype.changelog_feed.changelog_feed.get_feed export_python_type_annotations = True -standard_navbar_items = [ - { - "item_label": "User Settings", - "item_type": "Action", - "action": "frappe.ui.toolbar.route_to_user()", - "is_standard": 1, - }, - { - "item_label": "Log out", - "item_type": "Action", - "action": "frappe.app.logout()", - "is_standard": 1, - }, -] - standard_help_items = [ { "item_label": "About", diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar.html b/frappe/public/js/frappe/ui/sidebar/sidebar.html index 20458ff16d..9728d3ab16 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar.html +++ b/frappe/public/js/frappe/ui/sidebar/sidebar.html @@ -52,10 +52,10 @@ {%= __("Collapse") %} - - + diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js index c96f210105..95529364ac 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js @@ -76,6 +76,14 @@ frappe.ui.SidebarHeader = class SidebarHeader { label: "Help", icon: "info", items: this.get_help_siblings(), + }, + { + name: "logout", + label: "Logout", + icon: "logout", + onClick: function () { + return frappe.app.logout(); + }, } ); }