diff --git a/luci-app-mqtt-bridge/luasrc/controller/secubox/mqtt-bridge.lua b/luci-app-mqtt-bridge/luasrc/controller/secubox/mqtt-bridge.lua index 138122b2..9e2701ab 100644 --- a/luci-app-mqtt-bridge/luasrc/controller/secubox/mqtt-bridge.lua +++ b/luci-app-mqtt-bridge/luasrc/controller/secubox/mqtt-bridge.lua @@ -7,9 +7,8 @@ function index() return end - local root = {"admin", "secubox", "network", "mqtt-bridge"} - entry(root, firstchild(), _("MQTT Bridge"), 10).dependent = true - entry(root + {"overview"}, view("mqtt-bridge/overview"), _("Overview"), 10).leaf = true - entry(root + {"devices"}, view("mqtt-bridge/devices"), _("Devices"), 20).leaf = true - entry(root + {"settings"}, view("mqtt-bridge/settings"), _("Settings"), 90).leaf = true + entry({"admin", "secubox", "network", "mqtt-bridge"}, firstchild(), _("MQTT Bridge"), 10).dependent = true + entry({"admin", "secubox", "network", "mqtt-bridge", "overview"}, view("mqtt-bridge/overview"), _("Overview"), 10).leaf = true + entry({"admin", "secubox", "network", "mqtt-bridge", "devices"}, view("mqtt-bridge/devices"), _("Devices"), 20).leaf = true + entry({"admin", "secubox", "network", "mqtt-bridge", "settings"}, view("mqtt-bridge/settings"), _("Settings"), 90).leaf = true end