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 { ToggleTrashAction } from 'views-components/context-menu/actions/trash-action';
7 import { toggleTrashed } from 'store/trash/trash-actions';
9 export const trashActionSet: ContextMenuActionSet = [
12 component: ToggleTrashAction,
13 execute: (dispatch, resources) => {
14 resources.forEach((resource) => dispatch<any>(toggleTrashed(resource.kind, resource.uuid, resource.ownerUuid, resource.isTrashed!!)));