Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/Livewire/Topbar/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Actions extends Component implements HasActions, HasForms
{
use InteractsWithActions, InteractsWithForms;

public bool $showDashboard = true;

public function dashboardAction(): Action
{
return Action::make('metrics')
Expand Down
2 changes: 2 additions & 0 deletions resources/views/layouts/partials/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class="p-2 rounded-md transition-all"
</div>

@auth
<livewire:topbar.actions :showDashboard="false" />

<x-filament::button
href="{{ url('/admin') }}"
icon="tabler-layout-dashboard"
Expand Down
5 changes: 3 additions & 2 deletions resources/views/livewire/topbar/actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<div class="flex items-center gap-4">
{{ $this->speedtestAction }}

{{ $this->dashboardAction }}

@if ($showDashboard)
{{ $this->dashboardAction }}
@endif
</div>

<x-filament-actions::modals />
Expand Down
Loading