added id-s for easier customization
Massimo Melina committed
Apr 12, 2023 at 19:21 UTC
4ba33f3790e76e1939fcff48481d833beeca740e
1 file changed
+2
frontend/src/UserPanel.ts
+2
@@ -22,6 +22,7 @@ export default function showUserPanel() {
22
h(MenuButton, {
23
icon: 'password',
24
label: t`Change password`,
25
+ id: 'change-password',
26
onClickAnimation: false,
27
async onClick() {
28
const pwd = await promptDialog(t('enter_pass', "Enter new password"), { type: 'password' })
@@ -48,6 +49,7 @@ export default function showUserPanel() {
49
h(MenuButton, {
50
icon: 'logout',
51
label: t`Logout`,
52
+ id: 'logout',
53
onClick() {
54
logout().then(closeDialog, alertDialog)
55
}