X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ef3b2c15f10a3fea50170bc346105d909145a98f..refs/heads/14433_properties_inside_projects:/src/views-components/context-menu/action-sets/trashed-collection-action-set.ts?ds=inline 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..cefef345 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)); + } }, ]];