mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Cleanup more iError && data.Result
This commit is contained in:
parent
87bee226b4
commit
ce74b2e92f
19 changed files with 78 additions and 100 deletions
|
|
@ -54,7 +54,7 @@ export class AccountsUserSettings {
|
|||
this.accounts.remove((account) => accountToRemove === account);
|
||||
|
||||
Remote.accountDelete((iError, data) => {
|
||||
if (!iError && data && data.Result && data.Reload) {
|
||||
if (!iError && data.Reload) {
|
||||
rl.route.root();
|
||||
setTimeout(() => location.reload(), 1);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -43,11 +43,12 @@ export class SecurityUserSettings {
|
|||
|
||||
onBuild() {
|
||||
if (this.capaAutoLogout) {
|
||||
setTimeout(() => {
|
||||
const f0 = settingsSaveHelperSimpleFunction(this.autoLogout.trigger, this);
|
||||
|
||||
this.autoLogout.subscribe(Remote.saveSettingsHelper('AutoLogout', pInt, f0));
|
||||
});
|
||||
setTimeout(() =>
|
||||
this.autoLogout.subscribe(Remote.saveSettingsHelper(
|
||||
'AutoLogout', pInt,
|
||||
settingsSaveHelperSimpleFunction(this.autoLogout.trigger, this)
|
||||
))
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue