Skip to content

Commit

Permalink
Add Kill button to console
Browse files Browse the repository at this point in the history
  • Loading branch information
notAreYouScared committed Dec 8, 2024
1 parent 23246eb commit 6fd706e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Filament/Server/Pages/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ 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')
->size(ActionSize::ExtraLarge)
->action(fn () => $this->dispatch('setServerState', state: 'kill'))
->disabled(fn () => $server->isInConflictState() || $server->retrieveStatus() == 'offline'),
];
}
}

0 comments on commit 6fd706e

Please sign in to comment.