X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ef3b2c15f10a3fea50170bc346105d909145a98f..fca732a280e0e078a026ef8326eb5ad65f9864c6:/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts diff --git a/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts b/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts index e11228b4..ea0d1aaf 100644 --- a/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts +++ b/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts @@ -5,14 +5,16 @@ import { ContextMenuActionSet } from "../context-menu-action-set"; import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from '~/components/icon/icon'; import { toggleCollectionTrashed } from "~/store/trash/trash-actions"; -import { detailsPanelActions } from "~/store/details-panel/details-panel-action"; import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab"; +import { toggleDetailsPanel } from '~/store/details-panel/details-panel-action'; export const trashedCollectionActionSet: ContextMenuActionSet = [[ { icon: DetailsIcon, name: "View details", - execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL()) + execute: dispatch => { + dispatch(toggleDetailsPanel()); + } }, { icon: ProvenanceGraphIcon, @@ -24,11 +26,15 @@ export const trashedCollectionActionSet: ContextMenuActionSet = [[ { icon: AdvancedIcon, name: "Advanced", - execute: (dispatch, resource) => dispatch(openAdvancedTabDialog(resource.uuid)) + execute: (dispatch, resource) => { + dispatch(openAdvancedTabDialog(resource.uuid)); + } }, { icon: RestoreFromTrashIcon, name: "Restore", - execute: (dispatch, resource) => dispatch(toggleCollectionTrashed(resource.uuid, true)) + execute: (dispatch, resource) => { + dispatch(toggleCollectionTrashed(resource.uuid, true)); + } }, ]];