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 { showScreenPopup } from 'Knoin/Knoin';
import { DomainAdminStore } from 'Stores/Admin/Domain';
@ -46,8 +45,8 @@ export class DomainsAdminSettings {
DomainAdminStore.fetch();
}
onDomainLoadRequest(sResult, oData) {
if (StorageResultType.Success === sResult && oData && oData.Result) {
onDomainLoadRequest(iError, oData) {
if (!iError && oData && oData.Result) {
showScreenPopup(DomainPopupView, [oData.Result]);
}
}