diff --git a/app/Filament/Admin/Pages/Settings.php b/app/Filament/Admin/Pages/Settings.php index 6434f6ddc..783422264 100644 --- a/app/Filament/Admin/Pages/Settings.php +++ b/app/Filament/Admin/Pages/Settings.php @@ -23,7 +23,6 @@ use Filament\Forms\Form; use Filament\Forms\Get; use Filament\Forms\Set; use Filament\Notifications\Notification; -use Filament\Pages\Concerns\HasUnsavedDataChangesAlert; use Filament\Pages\Concerns\InteractsWithHeaderActions; use Filament\Pages\Page; use Filament\Support\Enums\MaxWidth; @@ -39,7 +38,6 @@ use Illuminate\Support\HtmlString; class Settings extends Page implements HasForms { use EnvironmentWriterTrait; - use HasUnsavedDataChangesAlert; use InteractsWithForms; use InteractsWithHeaderActions; @@ -590,11 +588,6 @@ class Settings extends Page implements HasForms return 'data'; } - protected function hasUnsavedDataChangesAlert(): bool - { - return true; - } - public function save(): void { try { @@ -608,8 +601,6 @@ class Settings extends Page implements HasForms Artisan::call('config:clear'); Artisan::call('queue:restart'); - $this->rememberData(); - $this->redirect($this->getUrl()); Notification::make() diff --git a/resources/views/filament/pages/settings.blade.php b/resources/views/filament/pages/settings.blade.php index 9f9b3f439..ae8edc1a3 100644 --- a/resources/views/filament/pages/settings.blade.php +++ b/resources/views/filament/pages/settings.blade.php @@ -1,15 +1,13 @@ + id="form" + :wire:key="$this->getId() . '.forms.' . $this->getFormStatePath()" + wire:submit="save" + > {{ $this->form }} - -