From 34813ff2b6b898cf4adb4a20df606261413d9afa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 20 May 2022 19:39:11 +0200 Subject: luci-mod-network: interfaces.js: remove references to original MAC/MTU Do not show the original values for MAC and MTU in device list tooltips anymore as the values we read from the netdev might already stem from overridden config settings. Since there's no generic way to acquire that information, remove the potentially confusing information. Fixes: #5820 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/network/interfaces.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/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 5b99ae17cd..18078cd9bd 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1450,7 +1450,7 @@ return view.extend({ mac = dev ? dev.getMAC() : null; return val ? E('strong', { - 'data-tooltip': _('The value is overridden by configuration. Original: %s').format(mac || _('unknown')) + 'data-tooltip': _('The value is overridden by configuration.') }, [ val.toUpperCase() ]) : (mac || '-'); }; @@ -1462,7 +1462,7 @@ return view.extend({ mtu = dev ? dev.getMTU() : null; return val ? E('strong', { - 'data-tooltip': _('The value is overridden by configuration. Original: %s').format(mtu || _('unknown')) + 'data-tooltip': _('The value is overridden by configuration.') }, [ val ]) : (mtu || '-').toString(); }; -- cgit v1.2.3