main -> primary
This commit is contained in:
+2
-2
@@ -407,7 +407,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
|
||||
// pre-flight only for changed domains
|
||||
var domains = [];
|
||||
if ($scope.app.domain !== data.domain || $scope.app.subdomain !== data.subdomain) domains.push({ subdomain: data.subdomain, domain: data.domain, type: 'main' });
|
||||
if ($scope.app.domain !== data.domain || $scope.app.subdomain !== data.subdomain) domains.push({ subdomain: data.subdomain, domain: data.domain, type: 'primary' });
|
||||
data.redirectDomains.forEach(function (a) {
|
||||
if ($scope.app.redirectDomains.some(function (d) { return d.domain === a.domain && d.subdomain === a.subdomain; })) return;
|
||||
domains.push({ subdomain: a.subdomain, domain: a.domain, type: 'redirect' });
|
||||
@@ -423,7 +423,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
Client.checkDNSRecords(domain.domain, domain.subdomain, function (error, result) {
|
||||
if (error) return callback(error);
|
||||
if (result.error) {
|
||||
if (domain.type === 'main') {
|
||||
if (domain.type === 'primary') {
|
||||
$scope.location.error.location = domain.domain + ' ' + result.error.message;
|
||||
} else if (domain.type === 'alias') {
|
||||
$scope.location.error.aliasDomains = domain.domain + ' ' + result.error.message;
|
||||
|
||||
Reference in New Issue
Block a user