userpage: autofill username in pwr modal

user-page
Harvey Tindall 1 year ago
parent 22c91be127
commit 3b3f37365a
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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();
}

Loading…
Cancel
Save