init customDomain only if we have an access key

This commit is contained in:
Girish Ramakrishnan
2016-07-05 16:06:58 -05:00
parent 57332eb0ce
commit 88fd25eff4

View File

@@ -155,7 +155,7 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$scope.showChangeDnsCredentials = function () {
dnsCredentialsReset();
$scope.dnsCredentials.customDomain = $scope.config.fqdn;
$scope.dnsCredentials.customDomain = $scope.dnsConfig.accessKeyId ? $scope.config.fqdn : '';
$scope.dnsCredentials.accessKeyId = $scope.dnsConfig.accessKeyId;
$scope.dnsCredentials.secretAccessKey = $scope.dnsConfig.secretAccessKey;