Skip to content

Commit

Permalink
Device overview: direct transceiver link
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Oct 2, 2024
1 parent dbfb0a6 commit cd36ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/View/Components/PortLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/device/overview/transceivers.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit cd36ba4

Please sign in to comment.