Wait for sometime to refresh mail domains

This commit is contained in:
Girish Ramakrishnan
2020-05-26 17:01:38 -07:00
parent f66d4e34d6
commit a9e49d98fd

View File

@@ -250,9 +250,10 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
maybeSetupDns(function (error) {
if (error) return console.error(error);
$scope.refreshDomain();
$scope.incomingEmail.busy = false;
$timeout(function () {
$scope.refreshDomain();
$scope.incomingEmail.busy = false;
}, 5000); // wait for mail container to restart. it cannot get IP otherwise while refreshing
});
});
},
@@ -266,8 +267,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
if (error) return console.error(error);
$scope.reconfigureEmailApps();
$scope.refreshDomain();
$scope.incomingEmail.busy = false;
$timeout(function () {
$scope.refreshDomain();
$scope.incomingEmail.busy = false;
}, 5000); // wait for mail container to restart. it cannot get IP otherwise while refreshing
});
}
};