diff --git a/frontend/src/views/Workflows2.jsx b/frontend/src/views/Workflows2.jsx index 2732279a..157b7ee7 100644 --- a/frontend/src/views/Workflows2.jsx +++ b/frontend/src/views/Workflows2.jsx @@ -2173,8 +2173,11 @@ const Workflows2 = (props) => { display: "flex", width: 160, height: 44, + marginTop: 5, justifyContent: "space-between", fontFamily: theme.typography?.fontFamily, + textAlign: "center", + margin: "auto", }; const exportAllWorkflows = (allWorkflows) => { @@ -3077,8 +3080,8 @@ const Workflows2 = (props) => { } } - const isPublicWorkflow = data?.objectId === undefined || data?.objectId === null - const foundImage = !isPublicWorkflow ? "" : data?.image_url === undefined || data?.image_url === null || data?.image_url === "" ? data?.image : data?.image_url + //const isPublicWorkflow = data?.objectID === undefined || data?.objectID === null + const foundImage = data?.image_url === undefined || data?.image_url === null || data?.image_url === "" ? data?.image : data?.image_url const foundTimeline = workflowTimelines.find((timeline) => timeline.id === data.id) return ( @@ -3087,7 +3090,7 @@ const Workflows2 = (props) => { style={{ width: "100%", minWidth: 320, position: "relative", border: highlightIds.includes(data.id) ? "2px solid #f85a3e" : isDistributed || hasSuborgs ? `2px solid ${theme.palette.distributionColor}` : "inherit", borderRadius: theme.palette?.borderRadius, backgroundColor: "#212121", fontFamily: theme.typography?.fontFamily, overflow: "hidden", }} > - {isPublicWorkflow && foundImage?.length > 0 ? + {foundImage?.length > 0 ? image { cursor: "pointer", }} onClick={() => { - if (isCloud) { - navigate(`/workflows/${data.objectID}`) + if (data?.objectID === undefined || data?.objectID === null) { + navigate(`/workflows/${data.id}`) } else { - window.open(`https://shuffler.io/workflows/${data.objectID}`, "_blank") + if (isCloud) { + navigate(`/workflows/${data.objectID}`) + } else { + window.open(`https://shuffler.io/workflows/${data.objectID}`, "_blank") + } } }} /> @@ -3221,13 +3228,19 @@ const Workflows2 = (props) => { { + {data.tags !== undefined && data.tags !== null