From 15ce99a0f98b3563523af1411c6c5afaab0ab90a Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Fri, 10 Sep 2021 13:47:28 +0300 Subject: luci-mod-network: fix src/dest textvalue for rules Fix the incorrectly displayed src/dest textvalue for the rules. Signed-off-by: Vladislav Grigoryev --- .../htdocs/luci-static/resources/view/network/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-mod-network/htdocs/luci-static/resources') diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js index 701f16c75f..c20574dbff 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js @@ -149,7 +149,7 @@ return view.extend({ o.datatype = (family == 6) ? 'cidr6' : 'cidr4'; o.placeholder = (family == 6) ? '::/0' : '0.0.0.0/0'; o.textvalue = function(section_id) { - return E('em', _('any')); + return this.cfgvalue(section_id) || E('em', _('any')); }; o = s.taboption('general', widgets.NetworkSelect, 'out', _('Outgoing interface')); @@ -160,7 +160,7 @@ return view.extend({ o.datatype = (family == 6) ? 'cidr6' : 'cidr4'; o.placeholder = (family == 6) ? '::/0' : '0.0.0.0/0'; o.textvalue = function(section_id) { - return E('em', _('any')); + return this.cfgvalue(section_id) || E('em', _('any')); }; o = s.taboption('general', form.Value, 'lookup', _('Table')); -- cgit v1.2.3