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 { openAdvancedTabDialog } from "store/advanced-tab/advanced-tab";
9 import { toggleDetailsPanel } from 'store/details-panel/details-panel-action';
11 export const trashedCollectionActionSet: ContextMenuActionSet = [[
15 execute: dispatch => {
16 dispatch<any>(toggleDetailsPanel());
20 icon: ProvenanceGraphIcon,
21 name: "Provenance graph",
22 execute: (dispatch, resource) => {
29 execute: (dispatch, resource) => {
30 dispatch<any>(openAdvancedTabDialog(resource.uuid));
34 icon: RestoreFromTrashIcon,
36 execute: (dispatch, resource) => {
37 dispatch<any>(toggleCollectionTrashed(resource.uuid, true));