From 78802f2850a8f6e4ff85faef74c70478b3cd92cc Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 4 Feb 2026 16:22:11 +0100 Subject: [PATCH] fix(luci): Fix menu navigation and settings Save & Apply for device-intel and dns-provider - Change menu action type from "firstchildview" to "firstchild" to fix runtime exception - Remove null handleSaveApply/handleSave/handleReset so form.Map default save works - Update Gandi API link from defunct account.gandi.net to admin.gandi.net PAT page Co-Authored-By: Claude Opus 4.5 --- .../luci-static/resources/view/device-intel/settings.js | 6 +----- .../root/usr/share/luci/menu.d/luci-app-device-intel.json | 2 +- .../luci-static/resources/view/dns-provider/settings.js | 8 ++------ .../root/usr/share/luci/menu.d/luci-app-dns-provider.json | 2 +- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/package/secubox/luci-app-device-intel/htdocs/luci-static/resources/view/device-intel/settings.js b/package/secubox/luci-app-device-intel/htdocs/luci-static/resources/view/device-intel/settings.js index 9043e78b..54a25ac2 100644 --- a/package/secubox/luci-app-device-intel/htdocs/luci-static/resources/view/device-intel/settings.js +++ b/package/secubox/luci-app-device-intel/htdocs/luci-static/resources/view/device-intel/settings.js @@ -147,9 +147,5 @@ return view.extend({ o.depends({ 'enabled': '1', 'adapter': 'zigbee2mqtt' }); return m.render(); - }, - - handleSaveApply: null, - handleSave: null, - handleReset: null + } }); diff --git a/package/secubox/luci-app-device-intel/root/usr/share/luci/menu.d/luci-app-device-intel.json b/package/secubox/luci-app-device-intel/root/usr/share/luci/menu.d/luci-app-device-intel.json index e4e99953..013720da 100644 --- a/package/secubox/luci-app-device-intel/root/usr/share/luci/menu.d/luci-app-device-intel.json +++ b/package/secubox/luci-app-device-intel/root/usr/share/luci/menu.d/luci-app-device-intel.json @@ -3,7 +3,7 @@ "title": "Device Intelligence", "order": 15, "action": { - "type": "firstchildview" + "type": "firstchild" }, "depends": { "acl": ["luci-app-device-intel"], diff --git a/package/secubox/luci-app-dns-provider/htdocs/luci-static/resources/view/dns-provider/settings.js b/package/secubox/luci-app-dns-provider/htdocs/luci-static/resources/view/dns-provider/settings.js index e81f43fe..e36d5557 100644 --- a/package/secubox/luci-app-dns-provider/htdocs/luci-static/resources/view/dns-provider/settings.js +++ b/package/secubox/luci-app-dns-provider/htdocs/luci-static/resources/view/dns-provider/settings.js @@ -86,7 +86,7 @@ return view.extend({ o = s.option(form.DummyValue, '_gandi_info'); o.rawhtml = true; o.default = '' + _('Obtain your Personal Access Token from') + - ' account.gandi.net'; + ' admin.gandi.net'; o = s.option(form.Value, 'api_key', _('API Key / PAT')); o.password = true; @@ -151,9 +151,5 @@ return view.extend({ var container = E('div', {}, [rendered, testBtn]); return container; }); - }, - - handleSaveApply: null, - handleSave: null, - handleReset: null + } }); diff --git a/package/secubox/luci-app-dns-provider/root/usr/share/luci/menu.d/luci-app-dns-provider.json b/package/secubox/luci-app-dns-provider/root/usr/share/luci/menu.d/luci-app-dns-provider.json index b504b780..3b4d3a2f 100644 --- a/package/secubox/luci-app-dns-provider/root/usr/share/luci/menu.d/luci-app-dns-provider.json +++ b/package/secubox/luci-app-dns-provider/root/usr/share/luci/menu.d/luci-app-dns-provider.json @@ -3,7 +3,7 @@ "title": "DNS Providers", "order": 40, "action": { - "type": "firstchildview" + "type": "firstchild" }, "depends": { "acl": ["luci-app-dns-provider"],