mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Cleanup __APP__/getApp code
This commit is contained in:
parent
29cf711a6a
commit
b904eca98e
34 changed files with 86 additions and 146 deletions
|
|
@ -7,8 +7,6 @@ import AccountStore from 'Stores/User/Account';
|
|||
import IdentityStore from 'Stores/User/Identity';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
import { showScreenPopup, routeOff, setHash } from 'Knoin/Knoin';
|
||||
|
||||
class AccountsUserSettings {
|
||||
|
|
@ -67,7 +65,7 @@ class AccountsUserSettings {
|
|||
|
||||
setTimeout(() => location.reload(), 1);
|
||||
} else {
|
||||
getApp().accountsAndIdentities();
|
||||
rl.app.accountsAndIdentities();
|
||||
}
|
||||
}, accountToRemove.email);
|
||||
}
|
||||
|
|
@ -86,7 +84,7 @@ class AccountsUserSettings {
|
|||
IdentityStore.identities.remove((oIdentity) => identityToRemove === oIdentity);
|
||||
|
||||
Remote.identityDelete(() => {
|
||||
getApp().accountsAndIdentities();
|
||||
rl.app.accountsAndIdentities();
|
||||
}, identityToRemove.id);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue