mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Remove useless clearPopup() functions
This commit is contained in:
parent
ba895ba887
commit
2a7348081a
9 changed files with 20 additions and 82 deletions
|
|
@ -61,10 +61,14 @@ class AccountPopupView extends AbstractViewPopup {
|
|||
return true;
|
||||
}
|
||||
|
||||
clearPopup() {
|
||||
this.isNew(true);
|
||||
|
||||
this.email('');
|
||||
onShow(account) {
|
||||
if (account && account.canBeEdit()) {
|
||||
this.isNew(false);
|
||||
this.email(account.email);
|
||||
} else {
|
||||
this.isNew(true);
|
||||
this.email('');
|
||||
}
|
||||
this.password('');
|
||||
|
||||
this.emailError(false);
|
||||
|
|
@ -74,14 +78,6 @@ class AccountPopupView extends AbstractViewPopup {
|
|||
this.submitError('');
|
||||
this.submitErrorAdditional('');
|
||||
}
|
||||
|
||||
onShow(account) {
|
||||
this.clearPopup();
|
||||
if (account && account.canBeEdit()) {
|
||||
this.isNew(false);
|
||||
this.email(account.email);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { AccountPopupView, AccountPopupView as default };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue