summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-05-20 19:39:11 +0200
committerJo-Philipp Wich <jo@mein.io>2022-05-20 19:41:14 +0200
commit34813ff2b6b898cf4adb4a20df606261413d9afa (patch)
tree17cdce67151de8e6052b0397d0d324e984f74587 /modules/luci-mod-network/htdocs
parentd6dbedd9e2c77f44be0f64ee8128401a293f77f4 (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js4
1 files changed, 2 insertions, 2 deletions
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();
};