[webui] sort vlan tooltip by vlanid (#16266)

This commit is contained in:
Peca Nesovanovic
2024-08-03 13:06:50 +02:00
committed by GitHub
parent c572448ca0
commit b2ac944b59

View File

@@ -69,7 +69,7 @@
<div class="tw-text-blue-800">
<a href="{{ \LibreNMS\Util\Url::deviceUrl($port->device_id, ['tab' => 'vlans']) }}">
@if($port->vlans->count() > 1)
<span title="{{ $port->vlans->pluck('vlan')->implode(',') }}">{{ __('port.vlan_count', ['count' => $port->vlans->count()]) }}</span>
<span title="{{ $port->vlans->sortby('vlan')->pluck('vlan')->implode(',') }}">{{ __('port.vlan_count', ['count' => $port->vlans->count()]) }}</span>
@elseif($port->vlans->count() == 1 || $port->ifVlan)
{{ __('port.vlan_label', ['label' => $port->vlans->first()->vlan ?: $port->ifVlan]) }}
@endif