Merge branch 'master'
[arvados-workbench2.git] / src / views-components / context-menu / action-sets / collection-resource-action-set.ts
index 565a7d090c930cbc2ea93f678c3e58a730927cbe..30ef4e795c74c20cec8aabd4351607c61080dadd 100644 (file)
@@ -13,6 +13,7 @@ import { openMoveCollectionDialog } from '~/store/collections/collection-move-ac
 import { openCollectionCopyDialog } from '~/store/collections/collection-copy-actions';
 import { toggleCollectionTrashed } from "~/store/trash/trash-actions";
 import { detailsPanelActions } from '~/store/details-panel/details-panel-action';
+import { openSharingDialog } from "~/store/sharing-dialog/sharing-dialog-actions";
 
 export const collectionResourceActionSet: ContextMenuActionSet = [[
     {
@@ -25,8 +26,8 @@ export const collectionResourceActionSet: ContextMenuActionSet = [[
     {
         icon: ShareIcon,
         name: "Share",
-        execute: (dispatch, resource) => {
-            // add code
+        execute: (dispatch, { uuid }) => {
+            dispatch<any>(openSharingDialog(uuid));
         }
     },
     {