Automatically expand the failing dns records

This commit is contained in:
Johannes Zellner
2017-05-11 16:44:18 +02:00
parent 8de940ae36
commit 393317d114
2 changed files with 13 additions and 2 deletions

View File

@@ -577,6 +577,17 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.expectedDnsRecords = result.dns;
$scope.outboundPort25 = result.outboundPort25;
// open the record details if they are not correct
for (var type in $scope.expectedDnsRecords) {
if (!$scope.expectedDnsRecords[type].status) {
$('#collapse_dns_' + type).collapse('show');
}
}
if (!$scope.outboundPort25.status) {
$('#collapse_dns_port').collapse('show');
}
callback(null);
});
}