outboundPort25 -> relay status

This commit is contained in:
Girish Ramakrishnan
2017-06-28 19:20:49 -05:00
parent 2df74ebe96
commit 2862fec819
5 changed files with 17 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
$scope.dnsConfig = {};
$scope.outboundPort25 = {};
$scope.relay = {};
$scope.expectedDnsRecords = {};
$scope.expectedDnsRecordsTypes = [
{ name: 'MX', value: 'mx' },
@@ -175,7 +175,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
if (error) return callback(error);
$scope.expectedDnsRecords = result.dns;
$scope.outboundPort25 = result.outboundPort25;
$scope.relay = result.relay;
// open the record details if they are not correct
for (var type in $scope.expectedDnsRecords) {
@@ -184,7 +184,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
}
}
if (!$scope.outboundPort25.status) {
if (!$scope.relay.status) {
$('#collapse_dns_port').collapse('show');
}