F
Filamentβ€’3mo ago
Wannes

Mount action after another action

Hi, Is it possible to open a new action form when pressing "Send" on the first one? After I sign a document via a modal, a popup should display to send an email. Yet I cant figure out how to do this, this is as far as I get, the second modal opens, but closes a second after.
SignAction::make('signTeamLead')
->arguments([
'prefix' => 'team_leader',
])
->label(__('resources/startup-sheets.sign_team_lead'))
->after(function ($livewire) {

$this->unmountAction();

$this->mountAction('sendStartupSheetMail');

}),
SignAction::make('signTeamLead')
->arguments([
'prefix' => 'team_leader',
])
->label(__('resources/startup-sheets.sign_team_lead'))
->after(function ($livewire) {

$this->unmountAction();

$this->mountAction('sendStartupSheetMail');

}),
2 Replies
Wannes
Wannesβ€’3mo ago
Thank you! Exactly what I'm looking for πŸ‘Œ
Want results from more Discord servers?
Add your server