Skip to content

Commit

Permalink
[webui] sort vlan tooltip by vlanid (librenms#16266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Npeca75 authored Aug 3, 2024
1 parent c572448 commit b2ac944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2ac944

Please sign in to comment.