User Manager page - edit a user #210
Labels
Frontend
Feature for React code
New Functionality
Feature that has not yet been implemented
Priority 1
Get it done!
Milestone
Note: This is contingent on the base implementation being done or almost done.
The whole purpose of the user manager table is to quickly see every user in the database at a glance and update their attributes. The cleanest way for this (since mass editing likely won't be useful) is to display a modal whenever a user is clicked on with editable fields.
Work off of the branch
role_manager_4.4.19
Action Items
userSelectedForEdit
exists in our state. If so, we should display the modal. I'd suggest creating a separate component likeEditUserModal
and pass both thethis.onModalClose
anduserSelectedForEdit
as props. When the user isnull
, the the modal should no longer be showing.Note: Don't hardcode the role and status options for the dropdowns. We already have these in a helper file! Check out
applicantInfoHelpers.js
and import the "roles" and "statuses." You can set the array of dropdown options toObject.values(roles)
onModalClose
callback with the updated user from the form as a parameter. For "cancel," just callonModalClose
with no param to clear out theuserSelectedForEdit
The text was updated successfully, but these errors were encountered: