Revert "fix(ux): add confirm before logout"

This reverts commit b8549a53e5.
This commit is contained in:
KerollesFathy 2026-03-11 13:11:45 +00:00
parent b8549a53e5
commit 067e874b02
2 changed files with 2 additions and 6 deletions

View file

@ -486,9 +486,7 @@ class DesktopPage {
icon: "log-out",
label: "Logout",
onClick: function () {
frappe.confirm(__("Are you sure you want to logout?"), () => {
return frappe.app.logout();
});
frappe.app.logout();
},
},
];

View file

@ -82,9 +82,7 @@ frappe.ui.SidebarHeader = class SidebarHeader {
label: "Logout",
icon: "logout",
onClick: function () {
frappe.confirm(__("Are you sure you want to logout?"), () => {
return frappe.app.logout();
});
return frappe.app.logout();
},
}
);