dns ui: add collapse button

This commit is contained in:
Girish Ramakrishnan
2016-07-03 08:28:31 -05:00
parent d259a3f326
commit 2e2b75bab2
2 changed files with 8 additions and 2 deletions

View File

@@ -93,6 +93,11 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
});
};
$scope.hideDnsCredentialsForm = function () {
$('#collapseDnsCredentialsForm').collapse('hide');
$scope.dnsCredentials.formVisible = false;
};
$scope.setDnsCredentials = function () {
$scope.dnsCredentials.busy = true;
$scope.dnsCredentials.error = null;
@@ -116,8 +121,7 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
$scope.dnsCredentials.accessKeyId = '';
$scope.dnsCredentials.secretAccessKey = '';
$('#collapseDnsCredentialsForm').collapse('hide');
$scope.dnsCredentials.formVisible = false;
$scope.hideDnsCredentialsForm();
// attempt to reload to make the browser get the new certs
window.location.reload(true);