main -> primary

This commit is contained in:
Girish Ramakrishnan
2022-02-07 17:23:17 -08:00
parent 4fead2411e
commit 27ec200fc0
+2 -2
View File
@@ -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;