Modal Action description & label not set

I am trying to set a action modal icon, description and submit action label, but only the heading seems to get applied.
Action::make('complete')
->label('Mark as Completed')
->form([
TextInput::make('installed_by')
->label('Installed By')
->required(),
])
->color('success')
->icon('heroicon-m-check-circle')
->modalHeading('Mark Order as Completed')
->modalDescription('Please provide information and photograph.')
->modalSubmitActionLabel('Complete Order')
->modalIcon('heroicon-m-check-circle')
->requiresConfirmation()
->action(function (): void {}),
Action::make('complete')
->label('Mark as Completed')
->form([
TextInput::make('installed_by')
->label('Installed By')
->required(),
])
->color('success')
->icon('heroicon-m-check-circle')
->modalHeading('Mark Order as Completed')
->modalDescription('Please provide information and photograph.')
->modalSubmitActionLabel('Complete Order')
->modalIcon('heroicon-m-check-circle')
->requiresConfirmation()
->action(function (): void {}),
Solution:
Seems I have to move these after requiresConfirmation() as this sets defaults.
Jump to solution
1 Reply
Solution
trovster
trovster16mo ago
Seems I have to move these after requiresConfirmation() as this sets defaults.
Want results from more Discord servers?
Add your server