Do not overwrite the provider previously set

This commit is contained in:
Johannes Zellner
2017-01-11 00:02:19 +01:00
parent 18007be9e1
commit edc7efae5f

View File

@@ -190,7 +190,7 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$scope.dnsCredentials.digitalOceanToken = $scope.dnsConfig.token;
$scope.dnsCredentials.provider = $scope.dnsConfig.provider === 'caas' ? 'route53' : $scope.dnsConfig.provider;
$scope.dnsCredentials.provider = ($scope.dnsConfig.provider === 'manual' && $scope.dnsConfig.wildcard) ? 'wildcard' : $scope.dnsConfig.provider;
$scope.dnsCredentials.provider = ($scope.dnsCredentials.provider === 'manual' && $scope.dnsConfig.wildcard) ? 'wildcard' : $scope.dnsCredentials.provider;
$('#dnsCredentialsModal').modal('show');
};