Fixup the status check logic

This commit is contained in:
Johannes Zellner
2018-01-23 12:38:19 +01:00
parent 456577a166
commit 16f43e3eac
2 changed files with 25 additions and 7 deletions

View File

@@ -285,6 +285,24 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
});
};
$scope.refreshStatus = function () {
$scope.refreshBusy = true;
Client.getMailStatusForDomain($scope.selectedDomain.domain, function (error, mailStatus) {
if (error) {
$scope.refreshBusy = false;
return console.error(error);
}
// overwrite the selected domain status to be available for the UI
$scope.selectedDomain.mailStatus = mailStatus;
showExpectedDnsRecords();
$scope.refreshBusy = false;
});
};
function getCatchallAddresses() {
Client.getCatchallAddresses(function (error, result) {
if (error) return console.error('Unable to get catchall address listing.', error);