Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support create/edit user role on user page #236

Merged
merged 9 commits into from
Jul 31, 2023
Merged

Support create/edit user role on user page #236

merged 9 commits into from
Jul 31, 2023

Conversation

shanghaikid
Copy link
Collaborator

image
image
image

shanghaikid and others added 4 commits July 27, 2023 19:36
Signed-off-by: shanghaikid <[email protected]>
Signed-off-by: shanghaikid <[email protected]>
Signed-off-by: ruiyi.jiang <[email protected]>
@shanghaikid shanghaikid requested a review from nameczz July 31, 2023 00:03
Signed-off-by: shanghaikid <[email protected]>
Signed-off-by: shanghaikid <[email protected]>
client/src/pages/user/CreateUser.tsx Outdated Show resolved Hide resolved
client/src/pages/user/Types.ts Outdated Show resolved Hide resolved
onUpdate={onUpdate}
handleClose={handleCloseDialog}
roles={
users.filter(u => u.name === selectedUser[0].name)[0].roles
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to check undefined here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

Signed-off-by: shanghaikid <[email protected]>
Signed-off-by: shanghaikid <[email protected]>
@shanghaikid shanghaikid merged commit 011ab44 into main Jul 31, 2023
@shanghaikid shanghaikid deleted the user_roles branch July 31, 2023 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants