Rerender header actions of a resource page
In my application, if a user updates a project, he/she will automatically be added to the "reviewers" HasMany relationship. A user can also assign or unassign himself/herself from a project using conditionally visible ("Does the projects reviewers relationship contain the user or not") header actions on the view and edit pages of the resource.
When updating the project through the edit page of the resource, the header actions do not rerender, so even if the user has become a reviewer as he or she has updated the project, the "Start reviewing" button is still visible, as the "Stop reviewing" isn't. The header actions only update on page refresh or if the user clicks "Start reviewing" even if he or she is already a reviewer (but the UI hasn't updated).
Is there any way to tell the header actions to rerender if the project is updated/changed?
0 Replies