Fixup the status check logic
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user