You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luci-app-upnp: rename UCI section name to settings (v2.0)
Inspired/address copilot's PR review for a clearer config by rename UCI
section name `config` (v1.0) -> `settings` (v2.0), helps on migration
and to distinguish the updated config from the previous one easily
(to merge with prior)
Signed-off-by: Self-Hosting-Group <[email protected]>
Copy file name to clipboardExpand all lines: applications/luci-app-upnp/htdocs/luci-static/resources/view/upnp/upnp.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -92,16 +92,16 @@ return view.extend({
92
92
'The %s (%s = UPnP IGD & PCP/NAT-PMP) protocols/service enable permitted devices on local networks to autonomously set up port maps (forwards) on this router.')
93
93
.format(protocols)
94
94
);
95
-
if(!uci.get('upnpd','config')){
95
+
if(!uci.get('upnpd','settings')){
96
96
ui.addNotification(null,E('div','<h4>'+_('No suitable configuration was found!')+'</h4><p>'+
97
-
_('No suitable (LuCI app %s) config found in %s. Related package update (daemon or LuCI app) may be missing.').format('v1.0','<code>/etc/config/upnpd</code>')+'<br>'+
97
+
_('No suitable (LuCI app %s) config found in %s. Related package update (daemon or LuCI app) may be missing.').format('v2.0','<code>/etc/config/upnpd</code>')+'<br>'+
98
98
_('Use the software package manager, update lists, and install the related update. Config is migrated on the daemon package update.')+'</p>'+
99
99
'<a class="btn" href="/cgi-bin/luci/admin/system/package-manager?query=UPnP%20IGD%20&%20PCP/NAT-PMP">'+_('Go to package manager…')+'</a>'),'warning');
0 commit comments