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,4 +1,4 @@
import { StorageResultType, Notification } from 'Common/Enums';
import { Notification } from 'Common/Enums';
import { pInt, pString } from 'Common/Utils';
import { i18n } from 'Common/Translator';
@ -205,9 +205,9 @@ class DomainPopupView extends AbstractViewPopup {
this.clearTesting();
}
onTestConnectionResponse(sResult, oData) {
onTestConnectionResponse(iError, oData) {
this.testing(false);
if (StorageResultType.Success === sResult && oData.Result) {
if (!iError && oData.Result) {
let bImap = false,
bSieve = false;
@ -248,9 +248,9 @@ class DomainPopupView extends AbstractViewPopup {
}
}
onDomainCreateOrSaveResponse(sResult, oData) {
onDomainCreateOrSaveResponse(iError, oData) {
this.saving(false);
if (StorageResultType.Success === sResult && oData) {
if (!iError && oData) {
if (oData.Result) {
DomainAdminStore.fetch();
this.closeCommand();