From d4767c2de61e1122e7b3714b80d34a77a197415e Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 6 Oct 2021 14:22:40 +0000 Subject: luci-app-snmpd: convert CBI to JS Eliminates luci-compat, but no other changes. Signed-off-by: Karl Palsson [add final newline, explicitly require `view` class, remove unused require, fix commit subject, initialize translation template] Signed-off-by: Jo-Philipp Wich --- .../luci-app-snmpd/root/usr/share/luci/menu.d/luci-app-snmpd.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-snmpd/root/usr') 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 } } } } -- cgit v1.2.3