diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-12-18 15:53:08 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-01-13 12:29:03 +0100 |
commit | 4bbf6db9d9909d1cc1105d39bfbabaa1cb897b87 (patch) | |
tree | daa4082671e03767cefd1571858d55f31f88f0c0 /applications/luci-app-firewall | |
parent | df2a135a08def546f44158d97fbaee5a544a6899 (diff) |
luci-app-firewall: add limited masquerading tooltip
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-firewall')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js | 8 |
1 files changed, 8 insertions, 0 deletions
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; |