custom domain migration ui (no javascript yet)

This commit is contained in:
Girish Ramakrishnan
2016-07-05 14:32:09 -05:00
parent 95d7d9192d
commit 0a45f087f2
2 changed files with 23 additions and 3 deletions

View File

@@ -30,9 +30,11 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
error: null,
success: false,
busy: false,
customDomain: '',
accessKeyId: '',
secretAccessKey: '',
provider: 'route53'
provider: 'route53',
password: ''
};
function readFileLocally(obj, file, fileName) {
@@ -129,19 +131,23 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$scope.dnsCredentials.success = false;
$scope.dnsCredentials.error = null;
$scope.dnsCredentials.customDomain = '';
$scope.dnsCredentials.accessKeyId = '';
$scope.dnsCredentials.secretAccessKey = '';
$scope.dnsCredentials.password = '';
$scope.dnsCredentialsForm.$setPristine();
$scope.dnsCredentialsForm.$setUntouched();
$('#dnsCredentialsAccessKeyId').focus();
$('#customDomainId').focus();
}
$scope.showChangeDnsCredentials = function () {
dnsCredentialsReset();
$scope.dnsCredentials.customDomain = $scope.config.fqdn;
$scope.dnsCredentials.accessKeyId = $scope.dnsConfig.accessKeyId;
$scope.dnsCredentials.secretAccessKey = $scope.dnsConfig.secretAccessKey;
$('#dnsCredentialsModal').modal('show');
};