Make refresh on Password Generator screen work.
This commit is contained in:
parent
8aa4dd1c4f
commit
44cefde7b6
|
@ -62,6 +62,7 @@ export class PwGenPage extends Page {
|
||||||
|
|
||||||
|
|
||||||
async render() {
|
async render() {
|
||||||
|
setPageContent("");
|
||||||
this.passwordBox = CopyableInputBox(genPassword(passwordOptionsDefault));
|
this.passwordBox = CopyableInputBox(genPassword(passwordOptionsDefault));
|
||||||
|
|
||||||
this.passwordLengthTitle = makeElement({
|
this.passwordLengthTitle = makeElement({
|
||||||
|
@ -132,6 +133,14 @@ export class PwGenPage extends Page {
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
this.passwordBox = undefined;
|
||||||
|
this.passwordLengthTitle = undefined;
|
||||||
|
this.passwordLengthRange = undefined;
|
||||||
|
this.passwordAlphabet = undefined;
|
||||||
|
this.passwordForm = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
get name() {
|
get name() {
|
||||||
return i18next.t("password_generator_title");
|
return i18next.t("password_generator_title");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue