X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9f1850a385ee8e0a011474de19ee6507b0b168f3..2c736f0babb3862b4d77210e3340473a1cf42082:/services/workbench2/src/store/projects/project-lock-actions.ts diff --git a/services/workbench2/src/store/projects/project-lock-actions.ts b/services/workbench2/src/store/projects/project-lock-actions.ts index 28e934d1f8..cd72e35196 100644 --- a/services/workbench2/src/store/projects/project-lock-actions.ts +++ b/services/workbench2/src/store/projects/project-lock-actions.ts @@ -7,11 +7,11 @@ import { ServiceRepository } from "services/services"; import { projectPanelActions } from "store/project-panel/project-panel-action-bind"; import { loadResource } from "store/resources/resources-actions"; import { RootState } from "store/store"; -import { MultiSelectMenuActionNames } from "views-components/multiselect-toolbar/ms-menu-actions"; +import { ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set"; import { addDisabledButton, removeDisabledButton } from "store/multiselect/multiselect-actions"; export const freezeProject = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - dispatch(addDisabledButton(MultiSelectMenuActionNames.FREEZE_PROJECT)) + dispatch(addDisabledButton(ContextMenuActionNames.FREEZE_PROJECT)) const userUUID = getState().auth.user!.uuid; const updatedProject = await services.projectService.update(uuid, { @@ -20,18 +20,18 @@ export const freezeProject = (uuid: string) => async (dispatch: Dispatch, getSta dispatch(projectPanelActions.REQUEST_ITEMS()); dispatch(loadResource(uuid, false)); - dispatch(removeDisabledButton(MultiSelectMenuActionNames.FREEZE_PROJECT)) + dispatch(removeDisabledButton(ContextMenuActionNames.FREEZE_PROJECT)) return updatedProject; }; export const unfreezeProject = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - dispatch(addDisabledButton(MultiSelectMenuActionNames.FREEZE_PROJECT)) + dispatch(addDisabledButton(ContextMenuActionNames.FREEZE_PROJECT)) const updatedProject = await services.projectService.update(uuid, { frozenByUuid: null, }); dispatch(projectPanelActions.REQUEST_ITEMS()); dispatch(loadResource(uuid, false)); - dispatch(removeDisabledButton(MultiSelectMenuActionNames.FREEZE_PROJECT)) + dispatch(removeDisabledButton(ContextMenuActionNames.FREEZE_PROJECT)) return updatedProject; };