From 73f44abb3cf6b3a2918144e7e201b1f34cbe5145 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Thu, 11 Dec 2025 17:26:31 +0100 Subject: [PATCH] feat: add speedtest button to metric dashboard (#2521) --- app/Livewire/Topbar/Actions.php | 2 ++ resources/views/layouts/partials/header.blade.php | 2 ++ resources/views/livewire/topbar/actions.blade.php | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) 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