14096-move-to-process
[arvados-workbench2.git] / src / store / context-menu / context-menu-actions.ts
index bb404b88963b9fbd358db6cdba1aa82a6e7bbf20..eabf41ae715ad715e6072ca46383c0499461d170 100644 (file)
@@ -88,7 +88,7 @@ export const openProcessContextMenu = (event: React.MouseEvent<HTMLElement>) =>
     (dispatch: Dispatch, getState: () => RootState) => {
         const { location } = getState().router;
         const pathname = location ? location.pathname : '';
-        const match = matchProcessRoute(pathname); 
+        const match = matchProcessRoute(pathname);
         const uuid = match ? match.params.id : '';
         const resource = {
             uuid,
@@ -108,6 +108,8 @@ export const resourceKindToContextMenuKind = (uuid: string) => {
             return ContextMenuKind.PROJECT;
         case ResourceKind.COLLECTION:
             return ContextMenuKind.COLLECTION_RESOURCE;
+        case ResourceKind.PROCESS:
+            return ContextMenuKind.PROCESS_RESOURCE;
         case ResourceKind.USER:
             return ContextMenuKind.ROOT_PROJECT;
         default: