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