Remove doubled ContextMenuResource, spearate menu for trash view
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / trash-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 { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
7 import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
8
9 export const trashActionSet: ContextMenuActionSet = [[
10     {
11         component: ToggleTrashAction,
12         execute: (dispatch, resource) => {
13             dispatch<any>(toggleCollectionTrashed(resource.uuid, resource.isTrashed!!));
14         }
15     },
16 ]];