Cleanup more iError && data.Result

This commit is contained in:
djmaze 2021-03-18 14:48:21 +01:00
parent 87bee226b4
commit ce74b2e92f
19 changed files with 78 additions and 100 deletions

View file

@ -206,7 +206,12 @@ class DomainPopupView extends AbstractViewPopup {
onTestConnectionResponse(iError, oData) {
this.testing(false);
if (!iError && oData.Result) {
if (iError) {
this.testingImapError(true);
this.testingSieveError(true);
this.testingSmtpError(true);
this.sieveSettings(false);
} else {
let bImap = false,
bSieve = false;
@ -239,11 +244,6 @@ class DomainPopupView extends AbstractViewPopup {
} else if (bSieve && !bImap) {
this.sieveSettings(true);
}
} else {
this.testingImapError(true);
this.testingSieveError(true);
this.testingSmtpError(true);
this.sieveSettings(false);
}
}