File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
app/nginx/certificates/list Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,6 @@ const internalCertificate = {
343
343
* @returns {Promise }
344
344
*/
345
345
download : ( access , data ) => {
346
-
347
346
return new Promise ( ( resolve , reject ) => {
348
347
access . can ( 'certificates:get' , data )
349
348
. then ( ( ) => {
@@ -366,8 +365,6 @@ const internalCertificate = {
366
365
fileName : opName
367
366
} ;
368
367
resolve ( resp ) ;
369
- } ) . catch ( ( err ) => {
370
- reject ( err ) ;
371
368
} ) ;
372
369
} else {
373
370
throw new error . ValidationError ( 'Only Let\'sEncrypt certificates can be renewed' ) ;
@@ -377,10 +374,10 @@ const internalCertificate = {
377
374
} ,
378
375
379
376
/**
380
- * @param {String } source
381
- * @param {String } out
382
- * @returns {Promise }
383
- */
377
+ * @param {String } source
378
+ * @param {String } out
379
+ * @returns {Promise }
380
+ */
384
381
zipDirectory ( source , out ) {
385
382
const archive = archiver ( 'zip' , { zlib : { level : 9 } } ) ;
386
383
const stream = fs . createWriteStream ( out ) ;
Original file line number Diff line number Diff line change 41
41
< span class = " dropdown-header" >< %- i18n (' audit-log' , ' certificate' ) % > #< %- id % >< / span>
42
42
< % if (provider === ' letsencrypt' ) { % >
43
43
< a href= " #" class = " renew dropdown-item" >< i class = " dropdown-icon fe fe-refresh-cw" >< / i> < %- i18n (' certificates' , ' force-renew' ) % >< / a>
44
- < a href= " #" class = " download dropdown-item" >< i class = " dropdown-icon fe fe-download" >< / i>< %- i18n (' certificates' , ' download' ) % >< / a>
44
+ < a href= " #" class = " download dropdown-item" >< i class = " dropdown-icon fe fe-download" >< / i> < %- i18n (' certificates' , ' download' ) % >< / a>
45
45
< div class = " dropdown-divider" >< / div>
46
46
< % } % >
47
47
< a href= " #" class = " delete dropdown-item" >< i class = " dropdown-icon fe fe-trash-2" >< / i> < %- i18n (' str' , ' delete' ) % >< / a>
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ module.exports = Mn.View.extend({
31
31
let win = window . open ( $ ( e . currentTarget ) . attr ( 'rel' ) , '_blank' ) ;
32
32
win . focus ( ) ;
33
33
} ,
34
+
34
35
'click @ui.download' : function ( e ) {
35
36
e . preventDefault ( ) ;
36
37
App . Api . Nginx . Certificates . download ( this . model . get ( 'id' ) )
Original file line number Diff line number Diff line change 188
188
"other-certificate-key" : " Certificate Key" ,
189
189
"other-intermediate-certificate" : " Intermediate Certificate" ,
190
190
"force-renew" : " Renew Now" ,
191
- "download" :" Download" ,
191
+ "download" : " Download" ,
192
192
"renew-title" : " Renew Let'sEncrypt Certificate"
193
193
},
194
194
"access-lists" : {
You can’t perform that action at this time.
0 commit comments