fix: add seperator for menu

This commit is contained in:
sokumon 2026-03-11 21:13:48 +05:30
parent bc1b8ab0fc
commit ac6d19317e

View file

@ -24,6 +24,17 @@ frappe.ui.SidebarHeader = class SidebarHeader {
},
items: this.sibling_workspaces,
},
{
name: "website",
label: __("Website"),
icon: "web",
onClick: function () {
window.open(window.location.origin);
},
},
{
is_divider: true,
},
{
name: "edit-sidebar",
label: __("Edit Sidebar"),
@ -35,18 +46,13 @@ frappe.ui.SidebarHeader = class SidebarHeader {
me.sidebar.editor.toggle();
},
},
{
name: "website",
label: __("Website"),
icon: "web",
onClick: function () {
window.open(window.location.origin);
},
},
];
if (frappe.boot.desk_settings.notifications) {
let is_dark = frappe.ui.get_current_theme() === "dark";
this.dropdown_items.push(
{
is_divider: true,
},
{
label: "Session Defaults",
action: "frappe.ui.toolbar.setup_session_defaults()",
@ -77,6 +83,9 @@ frappe.ui.SidebarHeader = class SidebarHeader {
icon: "info",
items: this.get_help_siblings(),
},
{
is_divider: true,
},
{
name: "logout",
label: "Logout",