diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index db73b97a..1b0ab426 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -232,11 +232,16 @@ class PlayerPropsDrop extends Widget } $this->player_on_field_counter = 0; + + $this->dispatch('update-players', players: $this->players); } public function copyDevelopment() { if ($this->player_on_field_counter < 10) { + Notification::make()->title('Needs a calculation first ') + ->info() + ->send(); return; } @@ -259,6 +264,9 @@ class PlayerPropsDrop extends Widget public function copyResult() { if ($this->player_on_field_counter < 10) { + Notification::make()->title('Needs a calculation first ') + ->info() + ->send(); return; } $header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];