Create permission service, create public access and sharing management actions
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / trashed-collection-action-set.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
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
9 export const trashedCollectionActionSet: ContextMenuActionSet = [[
10     {
11         icon: DetailsIcon,
12         name: "View details",
13         execute: (dispatch, resource) => {
14             // add code
15         }
16     },
17     {
18         icon: ProvenanceGraphIcon,
19         name: "Provenance graph",
20         execute: (dispatch, resource) => {
21             // add code
22         }
23     },
24     {
25         icon: AdvancedIcon,
26         name: "Advanced",
27         execute: (dispatch, resource) => {
28             // add code
29         }
30     },
31     {
32         icon: RestoreFromTrashIcon,
33         name: "Restore",
34         execute: (dispatch, resource) => {
35             dispatch<any>(toggleCollectionTrashed(resource.uuid, true));
36         }
37     },
38 ]];