Fixed asearch grid linking to shuffler.io properly for public items

This commit is contained in:
frikky
2022-12-06 12:18:45 +00:00
committed by GitHub
parent 829822fc20
commit e9f730746b
3 changed files with 73 additions and 55 deletions
+13 -3
View File
@@ -63,6 +63,10 @@ const WorkflowPaper = (props) => {
const [anchorEl, setAnchorEl] = React.useState(null);
const appGroup = data.action_references === undefined || data.action_references === null ? [] : data.action_references
const isCloud =
window.location.host === "localhost:3002" ||
window.location.host === "shuffler.io";
//console.log("Workflow: ", data)
var boxColor = "#86c142";
@@ -96,6 +100,10 @@ const WorkflowPaper = (props) => {
parsedUrl += `?queryID=${data.__queryID}`
}
if (!isCloud) {
parsedUrl = `https://shuffler.io${parsedUrl}`
}
return (
<div style={{width: "100%", position: "relative",}}>
<Paper square style={paperAppStyle}>
@@ -137,12 +145,14 @@ const WorkflowPaper = (props) => {
flex: 10,
}}
>
<Link
to={parsedUrl}
<a
href={parsedUrl}
rel="norefferer"
target="_blank"
style={{ textDecoration: "none", color: "inherit" }}
>
{parsedName}
</Link>
</a>
</Typography>
</Tooltip>
</Grid>