luci-mod-system: don't make SSH tabs depend on dropbear uci
authorJo-Philipp Wich <jo@mein.io>
Sun, 26 Apr 2020 16:38:16 +0000 (18:38 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
This prevents a situation where the tabs will be disabled by the dispatcher
once the last config section has been removed. This would allow a user to
disable SSH via the UI but not to reenable it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit baa3bd4aac64984dfbecf8e524cfb31ed485a916)

modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

index 4a65dec17a3cc3fe72f5719d4131fe24f2d6fbfb..adc3377d571f894b1d2848a50e9c2f11d9543a92 100644 (file)
@@ -31,9 +31,6 @@
                "action": {
                        "type": "view",
                        "path": "system/dropbear"
-               },
-               "depends": {
-                       "uci": { "dropbear": true }
                }
        },
 
@@ -43,9 +40,6 @@
                "action": {
                        "type": "view",
                        "path": "system/sshkeys"
-               },
-               "depends": {
-                       "uci": { "dropbear": true }
                }
        },