Skip to content

Commit fa6ca8a

Browse files
committed
treewide: vectorise iconography
follow-up to ae5d91d Signed-off-by: Paul Donald <newtwen+github@gmail.com>
1 parent fd0038d commit fa6ca8a

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

modules/luci-base/htdocs/luci-static/resources/icons/tunnel.svg

Lines changed: 1 addition & 1 deletion
Loading

modules/luci-base/htdocs/luci-static/resources/icons/tunnel_disabled.svg

Lines changed: 1 addition & 1 deletion
Loading

modules/luci-base/htdocs/luci-static/resources/icons/wireguard.svg

Lines changed: 1 addition & 2 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

modules/luci-base/htdocs/luci-static/resources/network.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2966,6 +2966,8 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
29662966
return 'wifi';
29672967
else if (this.dev.devtype == 'bridge' || _state.isBridge[this.device])
29682968
return 'bridge';
2969+
else if (this.dev.devtype == 'wireguard')
2970+
return 'wireguard';
29692971
else if (_state.isTunnel[this.device])
29702972
return 'tunnel';
29712973
else if (this.dev.devtype == 'vlan' || this.device.indexOf('.') > -1)
@@ -3037,6 +3039,9 @@ Device = baseclass.extend(/** @lends LuCI.network.Device.prototype */ {
30373039
case 'vlan':
30383040
return (_state.isSwitch[this.device] ? _('Switch VLAN') : _('Software VLAN'));
30393041

3042+
case 'wireguard':
3043+
return _('WireGuard Interface');
3044+
30403045
case 'tunnel':
30413046
return _('Tunnel Interface');
30423047

protocols/luci-proto-wireguard/htdocs/luci-static/resources/view/wireguard/status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ return view.extend({
128128
'click': ui.createHandlerFn(this, handleInterfaceDetails, ifaces[instanceName])
129129
}, [
130130
E('span', { 'class': 'ifacebadge' }, [
131-
E('img', { 'src': L.resource('icons', 'tunnel.svg'), 'style': 'width:32px;height:32px' }),
131+
E('img', { 'src': L.resource('icons', 'wireguard.svg'), 'style': 'width:32px;height:32px' }),
132132
'\xa0',
133133
instanceName
134134
]),

0 commit comments

Comments
 (0)