diff options
Diffstat (limited to 'static/pages/settings/index.js')
| -rw-r--r-- | static/pages/settings/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/static/pages/settings/index.js b/static/pages/settings/index.js index 36c1d09..4924f8b 100644 --- a/static/pages/settings/index.js +++ b/static/pages/settings/index.js @@ -4,6 +4,7 @@ const { Div, Img } = sfw.element.native; import * as api from '../../api/index.js'; import Editable from '../../widgets/editable/index.js'; +import PasswordDialog from '../../widgets/password-dialog/index.js'; import icons from '../../icons/index.js'; @@ -15,6 +16,7 @@ export default class SettingsView extends sfw.element.Container { #birthday #profile + #change_password constructor() { super({ css }); @@ -64,6 +66,14 @@ export default class SettingsView extends sfw.element.Container { onupdate: () => this.#update(), }), Div.new({ + id: 'change-password', + innerText: 'Change Password', + onclick: (e) => { + e.stopPropagation(); + this.body.append(PasswordDialog.new()); + } + }), + Div.new({ id: 'logout', innerText: 'Logout', onclick: () => this.onlogout(), |