Clean the new account fields after registration
This commit is contained in:
parent
2699b34ae1
commit
064665d0a3
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,10 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
console.log(new_account);
|
||||
new_account.register();
|
||||
console.log(`Account ${new_account.getName()} added.`);
|
||||
['#new-addr-local-part', '#new-addr-domain', '#new-addr-key'].forEach((selector) => {
|
||||
document.querySelector(selector).value = '';
|
||||
});
|
||||
document.querySelector('#new-addr-separator').value = '+';
|
||||
syncAccountList();
|
||||
closeAllModals();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue