From 4b6e37397d3a9a80db0c20484b712175c7b9c9c7 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 24 Nov 2025 15:55:20 +0100 Subject: add password-dialog --- static/pages/settings/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'static/pages/settings/index.js') 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 }); @@ -63,6 +65,14 @@ export default class SettingsView extends sfw.element.Container { value: '', 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', -- cgit v1.2.3-70-g09d2