Revert "fix(ux): add confirm before logout"
This reverts commit b8549a53e5.
This commit is contained in:
parent
b8549a53e5
commit
067e874b02
2 changed files with 2 additions and 6 deletions
|
|
@ -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();
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
},
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue