From 517f17cbcc90ad98fc74a8b2f162132510b37569 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Tue, 18 Mar 2025 17:35:01 +0100 Subject: [PATCH] Add redirect after clicking reinstall (#1126) --- app/Filament/Server/Pages/Settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Filament/Server/Pages/Settings.php b/app/Filament/Server/Pages/Settings.php index dc2755157..55c352943 100644 --- a/app/Filament/Server/Pages/Settings.php +++ b/app/Filament/Server/Pages/Settings.php @@ -192,7 +192,7 @@ class Settings extends ServerFormPage ]), Section::make('Reinstall Server') ->hidden(fn () => !auth()->user()->can(Permission::ACTION_SETTINGS_REINSTALL, $server)) - ->collapsible()->collapsed() + ->collapsible() ->footerActions([ Action::make('reinstall') ->color('danger') @@ -226,6 +226,8 @@ class Settings extends ServerFormPage ->success() ->title('Server Reinstall started') ->send(); + + redirect(Console::getUrl()); }), ]) ->footerActionsAlignment(Alignment::Right) @@ -257,7 +259,6 @@ class Settings extends ServerFormPage Notification::make() ->success() - ->duration(5000) // 5 seconds ->title('Updated Server Name') ->body(fn () => $original . ' -> ' . $name) ->send(); @@ -289,7 +290,6 @@ class Settings extends ServerFormPage Notification::make() ->success() - ->duration(5000) // 5 seconds ->title('Updated Server Description') ->body(fn () => $original . ' -> ' . $description) ->send();