X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92308b1b044dee2970c4409a0da660ccbecce945..ec491638051a00f89f613caecd7ed571ac7a2bfd:/services/workbench2/src/store/users/users-actions.ts diff --git a/services/workbench2/src/store/users/users-actions.ts b/services/workbench2/src/store/users/users-actions.ts index 4c789dbeed..62af580251 100644 --- a/services/workbench2/src/store/users/users-actions.ts +++ b/services/workbench2/src/store/users/users-actions.ts @@ -136,16 +136,6 @@ export const openUserPanel = () => } }; -export const toggleIsAdmin = (uuid: string) => - async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - const { resources } = getState(); - const data = getResource(uuid)(resources); - const isAdmin = data!.isAdmin; - const newActivity = await services.userService.update(uuid, { isAdmin: !isAdmin }); - dispatch(loadUsersPanel()); - return newActivity; - }; - export const loadUsersPanel = () => (dispatch: Dispatch) => { dispatch(userBindedActions.RESET_EXPLORER_SEARCH_VALUE());