X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8a570b430be529010e28929c589103ad6ffebedd..b6ac7fe88d347582d39fffa002e300af222c578f:/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 c42da1e6f8..b3d893b4b3 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 @@ -3,15 +3,17 @@ // SPDX-License-Identifier: AGPL-3.0 import { ContextMenuActionSet } from "../context-menu-action-set"; -import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from '~/components/icon/icon'; -import { toggleCollectionTrashed } from "~/store/trash/trash-actions"; +import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from 'components/icon/icon'; +import { toggleCollectionTrashed } from "store/trash/trash-actions"; +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, resource) => { - // add code + execute: dispatch => { + dispatch(toggleDetailsPanel()); } }, { @@ -25,7 +27,7 @@ export const trashedCollectionActionSet: ContextMenuActionSet = [[ icon: AdvancedIcon, name: "Advanced", execute: (dispatch, resource) => { - // add code + dispatch(openAdvancedTabDialog(resource.uuid)); } }, {