File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" modal-content" >
2
2
<div class =" modal-header" >
3
- <h5 class =" modal-title" >Delete Proxy Host </h5 >
3
+ <h5 class =" modal-title" ><% - i18n ( ' proxy-hosts ' , ' delete ' ) %> </h5 >
4
4
<button type =" button" class =" close cancel" aria-label =" Close" data-dismiss =" modal" >  ; </button >
5
5
</div >
6
6
<div class =" modal-body" >
17
17
</form >
18
18
</div >
19
19
<div class =" modal-footer" >
20
- <button type =" button" class =" btn btn-secondary cancel" data-dismiss =" modal" >Cancel </button >
21
- <button type =" button" class =" btn btn-danger save" >Yes I'm Sure </button >
20
+ <button type =" button" class =" btn btn-secondary cancel" data-dismiss =" modal" ><% - i18n ( ' str ' , ' cancel ' ) %> </button >
21
+ <button type =" button" class =" btn btn-danger save" ><% - i18n ( ' str ' , ' sure ' ) %> </button >
22
22
</div >
23
23
</div >
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const Mn = require ( 'backbone.marionette' ) ;
4
- const template = require ( './delete.ejs' ) ;
5
- const Controller = require ( '../../controller' ) ;
6
- const Api = require ( '../../api' ) ;
7
- const App = require ( '../../main' ) ;
3
+ const Mn = require ( 'backbone.marionette' ) ;
4
+ const App = require ( '../../main' ) ;
5
+ const template = require ( './delete.ejs' ) ;
8
6
9
7
require ( 'jquery-serializejson' ) ;
10
8
@@ -24,9 +22,9 @@ module.exports = Mn.View.extend({
24
22
'click @ui.save' : function ( e ) {
25
23
e . preventDefault ( ) ;
26
24
27
- Api . Nginx . ProxyHosts . delete ( this . model . get ( 'id' ) )
25
+ App . Api . Nginx . ProxyHosts . delete ( this . model . get ( 'id' ) )
28
26
. then ( ( ) => {
29
- Controller . showNginxProxy ( ) ;
27
+ App . Controller . showNginxProxy ( ) ;
30
28
App . UI . closeModal ( ) ;
31
29
} )
32
30
. catch ( err => {
Original file line number Diff line number Diff line change 56
56
"other-ssl" : " Other" ,
57
57
"letsencrypt" : " Let's Encrypt" ,
58
58
"letsencrypt-email" : " Email Address for Let's Encrypt" ,
59
- "letsencrypt-agreee " : " I Agree to the <a href=\" {url}\" target=\" _blank\" >Let's Encrypt Terms of Service</a>" ,
59
+ "letsencrypt-agree " : " I Agree to the <a href=\" {url}\" target=\" _blank\" >Let's Encrypt Terms of Service</a>" ,
60
60
"other-certificate" : " Certificate" ,
61
61
"other-certificate-key" : " Certificate Key"
62
62
},
66
66
"add" : " Add Proxy Host" ,
67
67
"form-title" : " {id, select, undefined{New} other{Edit}} Proxy Host" ,
68
68
"forward-ip" : " Forward IP" ,
69
- "forward-port" : " Forward Port"
69
+ "forward-port" : " Forward Port" ,
70
+ "delete" : " Delete Proxy Host"
70
71
},
71
72
"redirection-hosts" : {
72
73
"title" : " Redirection Hosts"
You can’t perform that action at this time.
0 commit comments