F
Filament3mo ago
Damien

How do I update the view modal state after an edit action?

In the following scenario, I have a CompanyResource and I have the following table actions:
->actions([
Tables\Actions\ViewAction::make()
->modalWidth('lg')
->modalFooterActionsAlignment('end')
->extraModalFooterActions([
Tables\Actions\EditAction::make()
->modalFooterActionsAlignment('end')
->modalWidth('lg'),
]),
Tables\Actions\EditAction::make()
->modalWidth('lg')
->modalFooterActionsAlignment('end'),
])->actionsColumnLabel('Actions')
->actions([
Tables\Actions\ViewAction::make()
->modalWidth('lg')
->modalFooterActionsAlignment('end')
->extraModalFooterActions([
Tables\Actions\EditAction::make()
->modalFooterActionsAlignment('end')
->modalWidth('lg'),
]),
Tables\Actions\EditAction::make()
->modalWidth('lg')
->modalFooterActionsAlignment('end'),
])->actionsColumnLabel('Actions')
At present, when I click a row on the table, it brings up the view modal, I then proceed to click edit, change a value and save. The view modal comes back but it still displays the old name. The table however does update in the background. What is the best way to handle this so that it gives a better UX than what I am currently giving / getting? Apologies if this is covered in the docs, I struggled to find it.
1 Reply
Damien
Damien3mo ago
Just commenting to bump this up.