Merge branch '19143-project-list-workflows'
[arvados-workbench2.git] / src / store / context-menu / context-menu-actions.ts
index fb5da9fcc0c7d4db80f8d2c1a3f4dcf3645f2947..3e239feeaa8bb9cb27867db910b6222398e48495 100644 (file)
@@ -189,8 +189,8 @@ export const openProcessContextMenu = (event: React.MouseEvent<HTMLElement>, pro
                 name: res.name,
                 description: res.description,
                 outputUuid: res.outputUuid || '',
-                workflowUuid: res.properties.workflowUuid || '',
-                menuKind: ContextMenuKind.PROCESS
+                workflowUuid: res.properties.template_uuid || '',
+                menuKind: ContextMenuKind.PROCESS_RESOURCE
             }));
         }
     };
@@ -261,6 +261,8 @@ export const resourceUuidToContextMenuKind = (uuid: string, readonly = false) =>
                 return ContextMenuKind.ROOT_PROJECT;
             case ResourceKind.LINK:
                 return ContextMenuKind.LINK;
+            case ResourceKind.WORKFLOW:
+                return ContextMenuKind.WORKFLOW;
             default:
                 return;
         }