1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContextMenuActionSet } from "../context-menu-action-set";
6 import { DetailsIcon, ProvenanceGraphIcon, AdvancedIcon, RestoreFromTrashIcon } from '~/components/icon/icon';
7 import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
8 import { detailsPanelActions } from "~/store/details-panel/details-panel-action";
9 import { openAdvancedTabDialog } from "~/store/advanced-tab/advanced-tab";
11 export const trashedCollectionActionSet: ContextMenuActionSet = [[
15 execute: dispatch => dispatch(detailsPanelActions.TOGGLE_DETAILS_PANEL())
18 icon: ProvenanceGraphIcon,
19 name: "Provenance graph",
20 execute: (dispatch, resource) => {
27 execute: (dispatch, resource) => dispatch<any>(openAdvancedTabDialog(resource.uuid))
30 icon: RestoreFromTrashIcon,
32 execute: (dispatch, resource) => dispatch<any>(toggleCollectionTrashed(resource.uuid, true))