From 8c7c56f4e415a3b80bf91c98aa02a638111bef51 Mon Sep 17 00:00:00 2001 From: Ingo Heinrich Date: Sat, 4 Mar 2023 12:17:50 +0100 Subject: [PATCH] luci-mod-status: nftables add counter and comment for empty match Signed-off-by: Ingo Heinrich --- .../htdocs/luci-static/resources/view/status/nftables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js index d5faedc4dc..d891526d04 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js @@ -515,7 +515,7 @@ return view.extend({ } if (empty) - dom.content(row.childNodes[0], E('em', [ _('Any packet', 'nft match any traffic') ])); + dom.append(row.childNodes[0], E('span', { 'class': 'ifacebadge' }, '%h'.format(_('Any packet', 'nft match any traffic')))); return row; }, -- 2.30.2