Skip to content

feat: Add update user roles action #1361

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

Merged
merged 18 commits into from
May 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add comment about fetch the roles
  • Loading branch information
BrunoQuaresma committed May 10, 2022
commit 9bd6ca5e40fd2e46c2e9890f71974690208c65fd
3 changes: 3 additions & 0 deletions site/src/pages/UsersPage/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const useRoles = () => {
const [rolesState, rolesSend] = useActor(xServices.siteRolesXService)
const { roles } = rolesState.context

/**
* Fetch roles on component mount
*/
useEffect(() => {
rolesSend({
type: "GET_ROLES",
Expand Down