From 4bbf6db9d9909d1cc1105d39bfbabaa1cb897b87 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 18 Dec 2020 15:53:08 +0100 Subject: [PATCH] luci-app-firewall: add limited masquerading tooltip Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/view/firewall/zones.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js index b2f9b81a9b..53612e0572 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js @@ -158,6 +158,14 @@ return view.extend({ o = s.taboption('general', form.Flag, 'masq', _('Masquerading')); o.editable = true; + o.tooltip = function(section_id) { + var masq_src = uci.get('firewall', section_id, 'masq_src') + var masq_dest = uci.get('firewall', section_id, 'masq_dest') + if (masq_src || masq_dest) + return _('Limited masquerading enabled'); + + return null; + }; o = s.taboption('general', form.Flag, 'mtu_fix', _('MSS clamping')); o.modalonly = true; -- 2.30.2