mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Device overview: direct transceiver link (#16485)
This commit is contained in:
@ -41,11 +41,11 @@ class PortLink extends Component
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Port $port, ?array $graphs = null, bool $basic = false)
|
||||
public function __construct(Port $port, ?array $graphs = null, bool $basic = false, array $vars = [])
|
||||
{
|
||||
$this->basic = $basic;
|
||||
$this->port = $port;
|
||||
$this->link = Url::portUrl($port);
|
||||
$this->link = Url::portUrl($port, $vars);
|
||||
$this->label = Rewrite::normalizeIfName($port->getLabel());
|
||||
$this->description = $port->getDescription();
|
||||
$this->status = $this->status();
|
||||
|
@ -10,7 +10,7 @@
|
||||
<x-panel body-class="!tw-p-0">
|
||||
<x-slot name="heading">
|
||||
@if($transceiver->port)
|
||||
<x-port-link :port="$transceiver->port"></x-port-link>
|
||||
<x-port-link :port="$transceiver->port" :vars="['view' => 'transceiver']"></x-port-link>
|
||||
@endif
|
||||
<x-icons.transceiver></x-icons.transceiver> {{ $transceiver->vendor }} {{ $transceiver->type }}
|
||||
</x-slot>
|
||||
|
Reference in New Issue
Block a user