diff --git a/app/Filament/Server/Pages/Console.php b/app/Filament/Server/Pages/Console.php index 91741b745b..44946c9e4a 100644 --- a/app/Filament/Server/Pages/Console.php +++ b/app/Filament/Server/Pages/Console.php @@ -71,6 +71,15 @@ protected function getHeaderActions(): array ->size(ActionSize::ExtraLarge) ->action(fn () => $this->dispatch('setServerState', state: 'stop')) ->disabled(fn () => $server->isInConflictState() || $server->retrieveStatus() == 'offline'), + Action::make('kill') + ->color('danger') + ->requiresConfirmation() + ->modalHeading('Do you wish to kill this server?') + ->modalDescription('This can result in data corruption and/or data loss!') + ->modalSubmitActionLabel('Kill Server') + ->size(ActionSize::ExtraLarge) + ->action(fn () => $this->dispatch('setServerState', state: 'kill')) + ->disabled(fn () => $server->isInConflictState() || $server->retrieveStatus() == 'offline'), ]; } }