From 63b7e637c94a57973cf889b699be42198af19d49 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 30 Nov 2024 04:47:52 +0100 Subject: luci-mod-status: NOTRACK action for nftables rule rendering Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/status/nftables.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view') 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 be62d91350..406f134327 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 @@ -93,6 +93,7 @@ var op_translations = { var action_translations = { 'accept': _('Accept packet', 'nft accept action'), + 'notrack': _('Do not track', 'nft notrack action'), 'drop': _('Drop packet', 'nft drop action'), 'jump': _('Continue in %h', 'nft jump action'), 'log': _('Log event "%h…"', 'nft log action'), @@ -145,6 +146,7 @@ return view.extend({ if (expr.hasOwnProperty(k)) { switch (k) { case 'accept': + case 'notrack': case 'reject': case 'drop': case 'jump': @@ -361,6 +363,7 @@ return view.extend({ }, (action_translations[k] || k).format(this.exprToString(spec.expr))); case 'accept': + case 'notrack': case 'drop': return E('span', { 'class': 'ifacebadge' -- cgit v1.2.3