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,5 @@
import ko from 'ko';
import { StorageResultType } from 'Common/Enums';
import { SettingsGet } from 'Common/Globals';
import { AppAdminStore } from 'Stores/Admin/App';
@ -112,8 +111,8 @@ export class SecurityAdminSettings {
}, 50);
}
onNewAdminPasswordResponse(result, data) {
if (StorageResultType.Success === result && data && data.Result) {
onNewAdminPasswordResponse(iError, data) {
if (!iError && data && data.Result) {
this.adminPassword('');
this.adminPasswordNew('');
this.adminPasswordNew2('');