mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +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
|
|
@ -2,6 +2,7 @@
|
|||
import { addObservablesTo } from 'External/ko';
|
||||
|
||||
import { getNotification } from 'Common/Translator';
|
||||
import { loadAccountsAndIdentities } from 'Common/UtilsUser';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ export class IdentityPopupView extends AbstractViewPopup {
|
|||
if (iError) {
|
||||
this.submitError(getNotification(iError));
|
||||
} else {
|
||||
rl.app.accountsAndIdentities();
|
||||
loadAccountsAndIdentities();
|
||||
this.close();
|
||||
}
|
||||
}, data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue