mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-03-15 18:18:16 -04:00
fixed linting
This commit is contained in:
parent
be87c45f27
commit
8944609b63
@ -343,7 +343,6 @@ const internalCertificate = {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
download: (access, data) => {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
access.can('certificates:get', data)
|
||||
.then(() => {
|
||||
@ -366,8 +365,6 @@ const internalCertificate = {
|
||||
fileName: opName
|
||||
};
|
||||
resolve(resp);
|
||||
}).catch((err) => {
|
||||
reject(err);
|
||||
});
|
||||
} else {
|
||||
throw new error.ValidationError('Only Let\'sEncrypt certificates can be renewed');
|
||||
|
@ -31,6 +31,7 @@ module.exports = Mn.View.extend({
|
||||
let win = window.open($(e.currentTarget).attr('rel'), '_blank');
|
||||
win.focus();
|
||||
},
|
||||
|
||||
'click @ui.download': function (e) {
|
||||
e.preventDefault();
|
||||
App.Api.Nginx.Certificates.download(this.model.get('id'))
|
||||
|
Loading…
Reference in New Issue
Block a user