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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-04 16:22:11 +01:00
parent abc0f66246
commit 78802f2850
4 changed files with 5 additions and 13 deletions

View File

@ -147,9 +147,5 @@ return view.extend({
o.depends({ 'enabled': '1', 'adapter': 'zigbee2mqtt' });
return m.render();
},
handleSaveApply: null,
handleSave: null,
handleReset: null
}
});

View File

@ -3,7 +3,7 @@
"title": "Device Intelligence",
"order": 15,
"action": {
"type": "firstchildview"
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-device-intel"],

View File

@ -86,7 +86,7 @@ return view.extend({
o = s.option(form.DummyValue, '_gandi_info');
o.rawhtml = true;
o.default = '<em>' + _('Obtain your Personal Access Token from') +
' <a href="https://account.gandi.net/en/users/security" target="_blank">account.gandi.net</a></em>';
' <a href="https://admin.gandi.net/organizations/account/pat" target="_blank">admin.gandi.net</a></em>';
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
}
});

View File

@ -3,7 +3,7 @@
"title": "DNS Providers",
"order": 40,
"action": {
"type": "firstchildview"
"type": "firstchild"
},
"depends": {
"acl": ["luci-app-dns-provider"],