mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
2.x - databases
This commit is contained in:
@ -55,8 +55,14 @@ public function infolist(Infolist $infolist): Infolist
|
||||
->icon('heroicon-o-arrow-path')
|
||||
->tooltip('Check Connection')
|
||||
->action(function (Server $record) {
|
||||
$previousStatus = $record->status;
|
||||
|
||||
$record = $record->checkConnection();
|
||||
|
||||
if ($previousStatus !== $record->status) {
|
||||
$this->redirect(url()->previous());
|
||||
}
|
||||
|
||||
$this->dispatch('$refresh');
|
||||
|
||||
Notification::make()
|
||||
|
Reference in New Issue
Block a user