fix: add reset to default in desktop icon
This commit is contained in:
parent
5d7f9c84c4
commit
039558335a
2 changed files with 8 additions and 2 deletions
|
|
@ -183,8 +183,6 @@
|
|||
width: 127px;
|
||||
padding: 13px 16px 13px 16px;
|
||||
& .icon-caption {
|
||||
width: 80%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-wrap: wrap;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,6 +174,14 @@ class DesktopPage {
|
|||
label: "Reset Password",
|
||||
url: "/update-password",
|
||||
},
|
||||
{
|
||||
icon: "rotate-ccw",
|
||||
label: "Reset to Default",
|
||||
onClick: function () {
|
||||
reset_to_default();
|
||||
window.location.reload();
|
||||
},
|
||||
},
|
||||
];
|
||||
frappe.ui.create_menu($(".desktop-avatar"), menu_items, null, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue