New Feature: Ability to change role for a workspace user. (#4616)

* New Feature: Ability to change role for a workspace user.

* reverting some of the changes in workspace-user.service.ts and minor code cleanup in the ui components.

* chore: refactor updateWorkspaceUser function queryRunner handling

---------

Co-authored-by: chungyau97 <chungyau97@gmail.com>
This commit is contained in:
Vinod Kiran
2025-06-19 23:07:29 +05:30
committed by GitHub
parent a107aa7a77
commit 9a60b7b223
6 changed files with 280 additions and 57 deletions
+5 -1
View File
@@ -16,6 +16,8 @@ const deleteWorkspace = (id) => client.delete(`/workspace/${id}`)
const getSharedWorkspacesForItem = (id) => client.get(`/workspace/shared/${id}`)
const setSharedWorkspacesForItem = (id, body) => client.post(`/workspace/shared/${id}`, body)
const updateWorkspaceUserRole = (body) => client.put(`/workspaceuser`, body)
export default {
getAllWorkspacesByOrganizationId,
getWorkspaceById,
@@ -26,5 +28,7 @@ export default {
linkUsers,
switchWorkspace,
getSharedWorkspacesForItem,
setSharedWorkspacesForItem
setSharedWorkspacesForItem,
updateWorkspaceUserRole
}