From 7beb7789a90193b3dd647c39fced599355685af7 Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 23 May 2026 17:18:25 +0200 Subject: [PATCH] wip --- app/Filament/Pages/Statistic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index 15d254d0..c7008734 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -134,6 +134,7 @@ class Statistic extends BaseDashboard Action::make('copyCostToPrice') ->action(function (callable $set) { $set('tm_player_id', null); + $set('player_on_field', null); }) ->color('gray') ->icon('phosphor-x'), @@ -148,6 +149,7 @@ class Statistic extends BaseDashboard ->label('Time on field') ->prefixIcon('phosphor-watch') ->default('all') + ->disabled(fn (Get $get) => ! $get('tm_player_id')) ->selectablePlaceholder(false) ->options([ 'all' => 'All',