requireconfirmation for notification action

look at this code \Filament\Notifications\Notification::make() ->warning() ->title('Attention') ->body("There are {$itemCounts} item inside repeader. What should i do?") ->persistent() ->actions([ \Filament\Notifications\Actions\Action::make('Keep') ->color('success') // ->success() ->button() ->icon('heroicon-m-plus') ->emit('createItemKeepOld', ['parameters' => $parameters]) // ->dispatch('createItemsWithParams', $parameters); ->close(), \Filament\Notifications\Actions\Action::make('Remove') ->color('danger') ->button() ->icon('heroicon-m-trash') ->emit('createItemRemoveOld', ['parameters' => $parameters]) // ->dispatch('createItemRemoveOld', $parameters) ->close(), \Filament\Notifications\Actions\Action::make('Cancel') ->button() ->close(), ]) ->send(); i need method ->requiresConfirmation() but look like it does not exist in \Filament\Notifications\Actions\Action. any help?
1 Reply
toeknee
toeknee3mo ago
You could add extraAttributes and a basic javascript alert, or do a pull request to add support. and please read the #help on how to format code.
Want results from more Discord servers?
Add your server