X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e99aebfc86f72db64d3bd04edeaabd5c31b9b3e6..aebc1ac220838aa4f849473f3dda8d121f6118af:/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 1f91d7e5..7ba9f5ee 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 @@ -7,13 +7,14 @@ import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } 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()); + dispatch(toggleDetailsPanel()); } }, { @@ -26,8 +27,8 @@ export const trashedCollectionActionSet: ContextMenuActionSet = [[ { icon: AdvancedIcon, name: "Advanced", - execute: (dispatch, resource) => { - dispatch(openAdvancedTabDialog(resource.uuid)); + execute: (dispatch, { uuid, ownerUuid }) => { + dispatch(openAdvancedTabDialog(uuid, ownerUuid)); } }, {