Add hyphenatedSubdomains checkbox to setup page
This commit is contained in:
@@ -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';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user