Problems with an action.

Hi, I made a component with filament table, and i'm trying to add a custom action.

protected function getTableActions(): array
    {
        return [
            Action::make('Promote to baseline')
                ->form([
                    TextInput::make('name')->required()
                ])
                ->action(function ($record, $data) {
                    app(VisualTestsServiceInterface::class)->promoteToBaseline($record, $data->name);
                })
                ->icon('heroicon-o-cloud-upload')
                ->requiresConfirmation(),
        ];
    }


The problem is when I click the button, it don't shows the modal with the form, and it doesn't do anything.
Was this page helpful?