diff --git a/src/frontend/js/app/nginx/proxy/delete.ejs b/src/frontend/js/app/nginx/proxy/delete.ejs index 9f6d04ef..93037ab0 100644 --- a/src/frontend/js/app/nginx/proxy/delete.ejs +++ b/src/frontend/js/app/nginx/proxy/delete.ejs @@ -1,6 +1,6 @@
diff --git a/src/frontend/js/app/nginx/proxy/delete.js b/src/frontend/js/app/nginx/proxy/delete.js index bd97c359..ee2656d8 100644 --- a/src/frontend/js/app/nginx/proxy/delete.js +++ b/src/frontend/js/app/nginx/proxy/delete.js @@ -1,10 +1,8 @@ 'use strict'; -const Mn = require('backbone.marionette'); -const template = require('./delete.ejs'); -const Controller = require('../../controller'); -const Api = require('../../api'); -const App = require('../../main'); +const Mn = require('backbone.marionette'); +const App = require('../../main'); +const template = require('./delete.ejs'); require('jquery-serializejson'); @@ -24,9 +22,9 @@ module.exports = Mn.View.extend({ 'click @ui.save': function (e) { e.preventDefault(); - Api.Nginx.ProxyHosts.delete(this.model.get('id')) + App.Api.Nginx.ProxyHosts.delete(this.model.get('id')) .then(() => { - Controller.showNginxProxy(); + App.Controller.showNginxProxy(); App.UI.closeModal(); }) .catch(err => { diff --git a/src/frontend/js/i18n/messages.json b/src/frontend/js/i18n/messages.json index c3e49d90..7bf726c1 100644 --- a/src/frontend/js/i18n/messages.json +++ b/src/frontend/js/i18n/messages.json @@ -56,7 +56,7 @@ "other-ssl": "Other", "letsencrypt": "Let's Encrypt", "letsencrypt-email": "Email Address for Let's Encrypt", - "letsencrypt-agreee": "I Agree to the Let's Encrypt Terms of Service", + "letsencrypt-agree": "I Agree to the Let's Encrypt Terms of Service", "other-certificate": "Certificate", "other-certificate-key": "Certificate Key" }, @@ -66,7 +66,8 @@ "add": "Add Proxy Host", "form-title": "{id, select, undefined{New} other{Edit}} Proxy Host", "forward-ip": "Forward IP", - "forward-port": "Forward Port" + "forward-port": "Forward Port", + "delete": "Delete Proxy Host" }, "redirection-hosts": { "title": "Redirection Hosts"