Uploading message on additional save button

Hi there! I added a second save button in headerActions:
class EditPost extends EditRecord
{
protected static string $resource = PostResource::class;

protected function getHeaderActions(): array
{
return [
$this->getSaveFormAction()
->formId('form'),
];
}
class EditPost extends EditRecord
{
protected static string $resource = PostResource::class;

protected function getHeaderActions(): array
{
return [
$this->getSaveFormAction()
->formId('form'),
];
}
It works great except for one thing: when form is processing, like uploading a file, we don't have the uploading message, and we can still click on the save button. I would like it to behave in the same way as the default native save button in form actions. Is there some trick I could use? Thanks!
1 Reply
charlie
charlieOP2d ago
I tried to make it work but I can't figure out why isProcessing Alpine state isn't passed to it

Did you find this page helpful?