From 3b3f37365a51b18fcf43fbfe638ba964824c954b Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 22 Jun 2023 12:39:13 +0100 Subject: [PATCH] userpage: autofill username in pwr modal --- ts/user.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/user.ts b/ts/user.ts index ac49b7e..8fef411 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -52,6 +52,9 @@ window.modals = {} as Modals; }; const resetButton = document.getElementById("modal-login-pwr"); resetButton.onclick = () => { + const usernameInput = document.getElementById("login-user") as HTMLInputElement; + const input = document.getElementById("pwr-address") as HTMLInputElement; + input.value = usernameInput.value; window.modals.login.close(); window.modals.pwr.show(); }