Convert admin/users view - move modal messages to components
Problem
The admin/users action components construct the message HTML in string. Ideally this should be in done in a template tag.
In !83111 (merged) this was updated to use an eventHub.
Proposal
Move the admin/users action messageHtml to components that can be slotted into the confirm modal.
Implementation
- Update confirm modal to slot in the right component for each action.
- Create a modal content component for each
messageHtmlinapp/assets/javascripts/admin/users/components/actions. - Pass the modal content component reference to the confirm modal via
eventHuband render it in the modal. - Remove the
messageHtmlinapp/assets/javascripts/admin/users/components/actions. - Update specs.
Edited by Jiaan Louw