Device overview: direct transceiver link (#16485)

This commit is contained in:
Tony Murray
2024-10-02 17:28:09 -05:00
committed by GitHub
parent e187eeb753
commit 32f9effd8e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,11 +41,11 @@ class PortLink extends Component
* *
* @return void * @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->basic = $basic;
$this->port = $port; $this->port = $port;
$this->link = Url::portUrl($port); $this->link = Url::portUrl($port, $vars);
$this->label = Rewrite::normalizeIfName($port->getLabel()); $this->label = Rewrite::normalizeIfName($port->getLabel());
$this->description = $port->getDescription(); $this->description = $port->getDescription();
$this->status = $this->status(); $this->status = $this->status();
@@ -10,7 +10,7 @@
<x-panel body-class="!tw-p-0"> <x-panel body-class="!tw-p-0">
<x-slot name="heading"> <x-slot name="heading">
@if($transceiver->port) @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 @endif
<x-icons.transceiver></x-icons.transceiver> {{ $transceiver->vendor }} {{ $transceiver->type }} <x-icons.transceiver></x-icons.transceiver> {{ $transceiver->vendor }} {{ $transceiver->type }}
</x-slot> </x-slot>