X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e952a4d2fac7c75375a9307f7f6676bd950bd0ed..ce19ce10f479c168f72003495696fdd0f01ecc52:/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 e11228b49e..cefef345f0 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,12 +7,15 @@ 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()) + execute: dispatch => { + dispatch(toggleDetailsPanel()); + } }, { icon: ProvenanceGraphIcon, @@ -24,11 +27,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)); + } }, ]];