mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Centralize loading of accounts and identities
This commit is contained in:
parent
7c1f70c51e
commit
ea55eb13e5
6 changed files with 42 additions and 38 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { addObservablesTo } from 'External/ko';
|
||||
import { getNotification } from 'Common/Translator';
|
||||
import { loadAccountsAndIdentities } from 'Common/UtilsUser';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
|
|
@ -37,7 +38,7 @@ export class AccountPopupView extends AbstractViewPopup {
|
|||
this.submitError(getNotification(iError));
|
||||
this.submitErrorAdditional(data?.ErrorMessageAdditional);
|
||||
} else {
|
||||
rl.app.accountsAndIdentities();
|
||||
loadAccountsAndIdentities();
|
||||
this.close();
|
||||
}
|
||||
}, data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue