reset the expect dns records on refresh

This commit is contained in:
Girish Ramakrishnan
2018-05-06 23:47:38 -07:00
parent a07848164c
commit a1ab8b6aa8

View File

@@ -466,9 +466,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
}
};
function collapseDnsRecords() {
function resetDnsRecords() {
$scope.expectedDnsRecordsTypes.forEach(function (record) {
var type = record.value;
$scope.expectedDnsRecords[type] = {};
$('#collapse_dns_' + type).collapse('hide');
});
@@ -503,7 +505,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.refreshDomain = function () {
$scope.refreshBusy = true;
collapseDnsRecords();
resetDnsRecords();
Client.getMailConfigForDomain($scope.selectedDomain.domain, function (error, mailConfig) {
if (error) {