Centralize loading of accounts and identities

This commit is contained in:
the-djmaze 2024-02-11 16:40:35 +01:00
parent 7c1f70c51e
commit ea55eb13e5
6 changed files with 42 additions and 38 deletions

View file

@ -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