diff --git a/app/Livewire/Topbar/Actions.php b/app/Livewire/Topbar/Actions.php index 95a8abcce..5f687ae86 100644 --- a/app/Livewire/Topbar/Actions.php +++ b/app/Livewire/Topbar/Actions.php @@ -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') diff --git a/resources/views/layouts/partials/header.blade.php b/resources/views/layouts/partials/header.blade.php index b8eed7ffc..d26419f78 100644 --- a/resources/views/layouts/partials/header.blade.php +++ b/resources/views/layouts/partials/header.blade.php @@ -55,6 +55,8 @@ class="p-2 rounded-md transition-all" @auth + + {{ $this->speedtestAction }} - {{ $this->dashboardAction }} - + @if ($showDashboard) + {{ $this->dashboardAction }} + @endif