modalSubmitActionLabel on v2 equivalent?
on v3, in an action, u do:
->modalSubmitActionLabel('hi')
on v2 idk how to do it:
i try:
->modalSubmitAction(fn ($action) => $action->label('hi'))
i get:
Filament\Support\Actions\Action::getModalSubmitAction(): Return value must be of type Filament\Support\Actions\Modal\Actions\Action, Filament\Tables\Actions\Action returned
the objective is to change the submit button label4 Replies
it doesnt. it moves the action on modal left bottom place (instead the right bottom location where it was) and on click does nothing. seems is a new action, unconfigured. also the label is not hi, it says "Action name"
Can you share more of the code? Presumably it's a table action?
is a table header action, but dont worry i solved it by overriding translations - file
lang/vendor/filament-support/en/actions/modal.php