diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-12-02 20:56:05 +0100 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-12-02 20:56:05 +0100 |
commit | 5b1253c41f5391c25e03114d348e50d03f19b8a0 (patch) | |
tree | 2b2ade8236d6666499407d4ad6929ec6c2fca2e7 /applications/luci-app-upnp/htdocs/luci-static/resources/view/status | |
parent | 3447700b3870e6cd2338a74312288a9a96d9519b (diff) |
luci-app-upnp: Critical hotfix revert 7a7f9ec
Revert "luci-app-upnp: remove dangling lines and split translations"
This reverts commit 7a7f9ec, as it introduced a regression.
Close #7444
Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
Diffstat (limited to 'applications/luci-app-upnp/htdocs/luci-static/resources/view/status')
-rw-r--r-- | applications/luci-app-upnp/htdocs/luci-static/resources/view/status/include/80_upnp.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-app-upnp/htdocs/luci-static/resources/view/status/include/80_upnp.js b/applications/luci-app-upnp/htdocs/luci-static/resources/view/status/include/80_upnp.js index dcb6963734..3173fb35bc 100644 --- a/applications/luci-app-upnp/htdocs/luci-static/resources/view/status/include/80_upnp.js +++ b/applications/luci-app-upnp/htdocs/luci-static/resources/view/status/include/80_upnp.js @@ -37,6 +37,7 @@ return baseclass.extend({ }, render: function(data) { + var table = E('table', { 'class': 'table', 'id': 'upnp_status_table' }, [ E('tr', { 'class': 'tr table-titles' }, [ E('th', { 'class': 'th' }, _('Client Name')), @@ -50,6 +51,7 @@ return baseclass.extend({ ]); var rules = Array.isArray(data[0].rules) ? data[0].rules : []; + var rows = rules.map(function(rule) { return [ rule.host_hint || _('Unknown'), @@ -64,7 +66,9 @@ return baseclass.extend({ }, [ _('Delete') ]) ]; }); + cbi_update_table(table, rows, E('em', _('There are no active port maps.'))); + return table; } }); |