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

View File

@ -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();

View File

@ -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>