Changed: StorageResultType to error result code

This commit is contained in:
djmaze 2021-03-16 09:46:23 +01:00
parent be3ef15f8e
commit 4a8d516123
33 changed files with 257 additions and 302 deletions

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { Capa, StorageResultType } from 'Common/Enums';
import { Capa } from 'Common/Enums';
import { Settings } from 'Common/Globals';
import { AccountUserStore } from 'Stores/User/Account';
@ -53,8 +53,8 @@ export class AccountsUserSettings {
if (accountToRemove) {
this.accounts.remove((account) => accountToRemove === account);
Remote.accountDelete((result, data) => {
if (StorageResultType.Success === result && data && data.Result && data.Reload) {
Remote.accountDelete((iError, data) => {
if (!iError && data && data.Result && data.Reload) {
rl.route.root();
setTimeout(() => location.reload(), 1);
} else {