X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2168b78443afc8bd1649ccd96e02fb1bce9b5243..2c736f0babb3862b4d77210e3340473a1cf42082:/services/workbench2/src/store/trash/trash-actions.ts diff --git a/services/workbench2/src/store/trash/trash-actions.ts b/services/workbench2/src/store/trash/trash-actions.ts index f4e3d3f0c4..b6740bf9ae 100644 --- a/services/workbench2/src/store/trash/trash-actions.ts +++ b/services/workbench2/src/store/trash/trash-actions.ts @@ -13,7 +13,7 @@ import { sharedWithMePanelActions } from "store/shared-with-me-panel/shared-with import { ResourceKind } from "models/resource"; import { navigateTo, navigateToTrash } from "store/navigation/navigation-action"; import { matchCollectionRoute, matchSharedWithMeRoute } from "routes/routes"; -import { MultiSelectMenuActionNames } from "views-components/multiselect-toolbar/ms-menu-actions"; +import { ContextMenuActionNames } from "views-components/context-menu/context-menu-action-set"; import { addDisabledButton } from "store/multiselect/multiselect-actions"; export const toggleProjectTrashed = @@ -22,7 +22,7 @@ export const toggleProjectTrashed = let errorMessage = ""; let successMessage = ""; let untrashedResource; - dispatch(addDisabledButton(MultiSelectMenuActionNames.MOVE_TO_TRASH)) + dispatch(addDisabledButton(ContextMenuActionNames.MOVE_TO_TRASH)) try { if (isTrashed) { errorMessage = "Could not restore project from trash"; @@ -77,7 +77,7 @@ export const toggleCollectionTrashed = async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise => { let errorMessage = ""; let successMessage = ""; - dispatch(addDisabledButton(MultiSelectMenuActionNames.MOVE_TO_TRASH)) + dispatch(addDisabledButton(ContextMenuActionNames.MOVE_TO_TRASH)) try { if (isTrashed) { const { location } = getState().router;