Action on custom page doesnt work

I want to add button which will verify the connection to the api. I have this function to make action protected function getFormActions(): array { return [ Action::make('save') ->label(__('Save')) ->submit('save'), Action::make('testConnection') ->label(__('Test connection')) ->icon('heroicon-s-wifi'), ]; } and this is function to check connect public function testConnection(): void { $connectionResult = $this->fakturowniaService->connectionTest(); if ($connectionResult === true) { Notification::make() ->success() ->title(__('filament-panels::resources/pages/edit-record.notifications.saved.title')) ->send(); } else { Notification::make() ->danger() ->title(__('filament-panels::resources/pages/edit-record.notifications.error.title')) ->send(); } } when I click the button I get this error. when I refresh the page, the correct notifications pop up
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin