summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-snmpd/root/usr
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2021-10-06 14:22:40 +0000
committerJo-Philipp Wich <jo@mein.io>2021-10-08 20:08:41 +0200
commitd4767c2de61e1122e7b3714b80d34a77a197415e (patch)
tree0dfff3b769730fd85b1447920a5a91379c8910a4 /applications/luci-app-snmpd/root/usr
parent23babd7cd42c88fdc185a68cff7882b43e7ef9af (diff)
luci-app-snmpd: convert CBI to JS
Eliminates luci-compat, but no other changes. Signed-off-by: Karl Palsson <karlp@etactica.com> [add final newline, explicitly require `view` class, remove unused require, fix commit subject, initialize translation template] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-snmpd/root/usr')
-rw-r--r--applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json b/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
index c30f35fa42..85850a218a 100644
--- a/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
+++ b/applications/luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json
@@ -2,12 +2,12 @@
"admin/services/snmpd": {
"title": "SNMPD",
"action": {
- "type": "cbi",
- "path": "snmpd",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "snmpd/snmpd"
},
"depends": {
- "acl": [ "luci-app-snmpd" ]
+ "acl": [ "luci-app-snmpd" ],
+ "uci": { "snmpd": true }
}
}
}