Merge branch 'master' into 14643-re-run-workflow
[arvados-workbench2.git] / src / store / context-menu / context-menu-actions.ts
index c43d5685655c8667bc272246bedf6597b41ca7c9..269495e5d3af4cee52cb2fd819320a4d4b4c600a 100644 (file)
@@ -36,6 +36,7 @@ export type ContextMenuResource = {
     menuKind: ContextMenuKind;
     isTrashed?: boolean;
     outputUuid?: string;
+    workflowUuid?: string;
 };
 
 export const isKeyboardClick = (event: React.MouseEvent<HTMLElement>) => event.nativeEvent.detail === 0;
@@ -123,12 +124,12 @@ export const openComputeNodeContextMenu = (event: React.MouseEvent<HTMLElement>,
     };
 
 export const openApiClientAuthorizationContextMenu =
-    (event: React.MouseEvent<HTMLElement>, apiClientAuthorization: ApiClientAuthorization) =>
+    (event: React.MouseEvent<HTMLElement>, resourceUuid: string) =>
         (dispatch: Dispatch) => {
             dispatch<any>(openContextMenu(event, {
                 name: '',
-                uuid: apiClientAuthorization.uuid,
-                ownerUuid: apiClientAuthorization.ownerUuid,
+                uuid: resourceUuid,
+                ownerUuid: '',
                 kind: ResourceKind.API_CLIENT_AUTHORIZATION,
                 menuKind: ContextMenuKind.API_CLIENT_AUTHORIZATION
             }));
@@ -187,6 +188,7 @@ export const openProcessContextMenu = (event: React.MouseEvent<HTMLElement>, pro
                 name: res.name,
                 description: res.description,
                 outputUuid: res.outputUuid || '',
+                workflowUuid: res.properties.workflowUuid || '',
                 menuKind: ContextMenuKind.PROCESS
             }));
         }