Add separate entry for wildcard in dns setup

Fixes #168
This commit is contained in:
Johannes Zellner
2017-01-04 15:08:21 +01:00
parent c0afff4d13
commit b6a545d1f5

View File

@@ -97,6 +97,7 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
$scope.showDNSSetup = false;
$scope.dnsProvider = [
{ name: 'Manual/Wildcard', value: 'manual' },
{ name: 'Wildcard', value: 'wildcard' },
{ name: 'No-op', value: 'noop' },
{ name: 'AWS Route53', value: 'route53' },
{ name: 'Digital Ocean', value: 'digitalocean' }
@@ -159,6 +160,12 @@ app.controller('SetupController', ['$scope', '$http', 'Client', function ($scope
token: $scope.dnsCredentials.digitalOceanToken
};
// special case the wildcard provider
if (data.provider === 'wildcard') {
data.provider = 'manual';
data.wildcard = true;
}
Client.setDnsConfig(data, function (error) {
$scope.busy = false;