Update access level of shared members in UI when changing group access level
Background
Follow-up from #364078 (comment 1828888427)
When updating the access level of a shared group the access level is not updated on the Members
tab until the page is reloaded.
Changed role to developer on groups tab | Members tab still says reporter |
---|---|
Proposal
Due to the architecture of this page it makes it difficult to update other tabs without fully reloading the page. The easiest solution to this bug would be to reload the page when updating the access level of a shared group.
Implementation plan
- Create a
visitUrlWithToast
util similar tovisitUrlWithAlerts
- In app/assets/javascripts/members/utils.js#L193 check the member type. If the member type is
group
usevisitUrlWithToast
to reload the page and show a toast.
Edited by Peter Hegman