Add hyphenatedSubdomains checkbox to setup page

This commit is contained in:
Girish Ramakrishnan
2018-08-28 21:47:16 -07:00
parent 60107147c2
commit 507c8b8786
2 changed files with 13 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
$scope.instanceId = '';
$scope.isDomain = false;
$scope.isSubdomain = false;
$scope.hyphenatedSubdomains = false;
$scope.tlsProvider = [
{ name: 'Let\'s Encrypt Prod', value: 'letsencrypt-prod' },
{ name: 'Let\'s Encrypt Staging', value: 'letsencrypt-staging' },
@@ -76,7 +77,8 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
zoneName: '',
tlsConfig: {
provider: 'letsencrypt-prod'
}
},
hyphenatedSubdomains: false
};
function readFileLocally(obj, file, fileName) {
@@ -105,7 +107,8 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
var provider = $scope.dnsCredentials.provider;
var data = {
providerToken: $scope.instanceId
providerToken: $scope.instanceId,
hyphenatedSubdomains: $scope.hyphenatedSubdomains
};
// special case the wildcard provider
@@ -200,6 +203,7 @@ app.controller('SetupDNSController', ['$scope', '$http', '$timeout', 'Client', f
$scope.instanceId = search.instanceId;
$scope.provider = status.provider;
$scope.hyphenatedSubdomains = status.edition === 'hostingprovider';
$scope.state = 'initialized';
});
}