Merge branch 'master' into 14603-add-controlled-vocabulary-to-advanced-search
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-files-item-action-set.ts
index 2baa52440162f48d68d3dcad64ad0f82a894f522..94f702e822913dda057fa6869925222bd3b7e5ae 100644 (file)
@@ -6,17 +6,25 @@ import { ContextMenuActionSet } from "../context-menu-action-set";
 import { RenameIcon, RemoveIcon } from "~/components/icon/icon";
 import { DownloadCollectionFileAction } from "../actions/download-collection-file-action";
 import { openFileRemoveDialog, openRenameFileDialog } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions';
+import { FileViewerActions } from '~/views-components/context-menu/actions/file-viewer-actions';
 
 
 export const collectionFilesItemActionSet: ContextMenuActionSet = [[{
     name: "Rename",
     icon: RenameIcon,
-    execute: (dispatch, resource) => dispatch<any>(openRenameFileDialog({ name: resource.name, id: resource.uuid }))
+    execute: (dispatch, resource) => {
+        dispatch<any>(openRenameFileDialog({ name: resource.name, id: resource.uuid }));
+    }
 }, {
     component: DownloadCollectionFileAction,
     execute: () => { return; }
 }, {
     name: "Remove",
     icon: RemoveIcon,
-    execute: (dispatch, resource) => dispatch<any>(openFileRemoveDialog(resource.uuid))
+    execute: (dispatch, resource) => {
+        dispatch<any>(openFileRemoveDialog(resource.uuid));
+    }
+}], [{
+    component: FileViewerActions,
+    execute: () => { return; },
 }]];