luci-app-sshtunnel: hide Save and Apply buutons for non form pages
authorSergey Ponomarev <stokito@gmail.com>
Thu, 21 Dec 2023 01:37:52 +0000 (03:37 +0200)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Wed, 27 Dec 2023 20:24:25 +0000 (20:24 +0000)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_hosts.js
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_keys.js
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_tunnels.js

index b82eae26172dcbbdfdae39e0a05cf02532b84848..464451cb5d475e4c808cfa9f27ffd5949b76a1ef 100644 (file)
@@ -6,6 +6,10 @@
 
 
 return view.extend({
+       handleSaveApply: null,
+       handleSave: null,
+       handleReset: null,
+
        load: function () {
                return Promise.all([
                        fs.lines('/root/.ssh/known_hosts'),
@@ -18,7 +22,7 @@ return view.extend({
                var m, s, o;
 
                m = new form.Map('sshtunnel', _('SSH Tunnels'),
-                       _('This configures <a %s>SSH Tunnels</a>')
+                       _('This configures <a %s>SSH Tunnels</a>.')
                                .format('href="https://openwrt.org/docs/guide-user/services/ssh/sshtunnel"')
                );
 
index adaa1035973ea5a15b4a7c6600c75bedf96e1f49..02f478ba81e724d7691670bd4143d236f8b8518a 100644 (file)
@@ -8,6 +8,10 @@ var allSshKeys = {};
 var hasSshKeygen = false;
 
 return view.extend({
+       handleSaveApply: null,
+       handleSave: null,
+       handleReset: null,
+
        load: function () {
                return L.resolveDefault(fs.list('/root/.ssh/'), []).then(function (entries) {
                        var tasks = [
@@ -33,7 +37,7 @@ return view.extend({
                var m, s, o;
 
                m = new form.Map('sshtunnel', _('SSH Tunnels'),
-                       _('This configures <a %s>SSH Tunnels</a>')
+                       _('This configures <a %s>SSH Tunnels</a>.')
                                .format('href="https://openwrt.org/docs/guide-user/services/ssh/sshtunnel"')
                );
 
index 74182c5cca49ccdd3fdf35b9ef323343c29efe42..88c3692728b5e3c8464c08fc45f49d458967923e 100644 (file)
@@ -22,7 +22,7 @@ return view.extend({
                var m, s, o;
 
                m = new form.Map('sshtunnel', _('SSH Tunnels'),
-                       _('This configures <a %s>SSH Tunnels</a>')
+                       _('This configures <a %s>SSH Tunnels</a>.')
                                .format('href="https://openwrt.org/docs/guide-user/services/ssh/sshtunnel"')
                );
 
index 34fceab2f0a6f995d6041df4a21b2920ce5c347e..a594b29a95adf0279b8c3fd45f456c04f0950491 100644 (file)
@@ -16,7 +16,7 @@ return view.extend({
                var m, s, o;
 
                m = new form.Map('sshtunnel', _('SSH Tunnels'),
-                       _('This configures <a %s>SSH Tunnels</a>')
+                       _('This configures <a %s>SSH Tunnels</a>.')
                                .format('href="https://openwrt.org/docs/guide-user/services/ssh/sshtunnel"')
                );