Use toplevel cert renewal api for all domains
This commit is contained in:
+12
-17
@@ -352,39 +352,34 @@ angular.module('Application').controller('DomainsController', ['$scope', '$locat
|
||||
}
|
||||
};
|
||||
|
||||
$scope.domainRenewCerts = {
|
||||
$scope.renewCerts = {
|
||||
busy: false,
|
||||
error: null,
|
||||
domain: null,
|
||||
|
||||
show: function (domain) {
|
||||
$scope.domainRenewCerts.reset();
|
||||
|
||||
$scope.domainRenewCerts.domain = domain;
|
||||
|
||||
$('#domainRenewCertsModal').modal('show');
|
||||
show: function () {
|
||||
$scope.renewCerts.reset();
|
||||
$('#renewCertsModal').modal('show');
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
$scope.domainRenewCerts.busy = true;
|
||||
$scope.domainRenewCerts.error = null;
|
||||
$scope.renewCerts.busy = true;
|
||||
$scope.renewCerts.error = null;
|
||||
|
||||
Client.renewCerts($scope.domainRenewCerts.domain.domain, function (error) {
|
||||
Client.renewCerts(null /* all domains */, function (error) {
|
||||
if (error) {
|
||||
Client.error(error);
|
||||
} else {
|
||||
$('#domainRenewCertsModal').modal('hide');
|
||||
$scope.domainRenewCerts.reset();
|
||||
$('#renewCertsModal').modal('hide');
|
||||
$scope.renewCerts.reset();
|
||||
}
|
||||
|
||||
$scope.domainRenewCerts.busy = false;
|
||||
$scope.renewCerts.busy = false;
|
||||
});
|
||||
},
|
||||
|
||||
reset: function () {
|
||||
$scope.domainRenewCerts.busy = false;
|
||||
$scope.domainRenewCerts.error = null;
|
||||
$scope.domainRenewCerts.domain = null;
|
||||
$scope.renewCerts.busy = false;
|
||||
$scope.renewCerts.error = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user