refs #master Merge branch 'origin/master' into 13828-trash-view
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-action-set.ts
index b3fdc3fbab642561d823cddd003a70b9ab288149..f26003653382701cf8b700143bd30db830788c46 100644 (file)
@@ -10,6 +10,8 @@ import { openCollectionUpdateDialog } from "~/store/collections/collection-updat
 import { favoritePanelActions } from "~/store/favorite-panel/favorite-panel-action";
 import { openMoveCollectionDialog } from '~/store/collections/collection-move-actions';
 import { openCollectionCopyDialog } from "~/store/collections/collection-copy-actions";
+import { ToggleTrashAction } from "~/views-components/context-menu/actions/trash-action";
+import { toggleCollectionTrashed } from "~/store/collections/collection-trash-actions";
 
 export const collectionActionSet: ContextMenuActionSet = [[
     {
@@ -39,6 +41,12 @@ export const collectionActionSet: ContextMenuActionSet = [[
             });
         }
     },
+    {
+        component: ToggleTrashAction,
+        execute: (dispatch, resource) => {
+            dispatch<any>(toggleCollectionTrashed(resource));
+        }
+    },
     {
         icon: CopyIcon,
         name: "Copy to project",