1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

job result fallbacks

This commit is contained in:
Matthias Kretschmann 2020-10-22 17:38:55 +02:00
parent 762e8785c7
commit d75d172c0c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -75,22 +75,30 @@ export default function ComputeDetailsModal({
<> <>
<ul> <ul>
<ListItem> <ListItem>
<a {computeJob.algorithmLogUrl ? (
href={computeJob.algorithmLogUrl} <a
target="_blank" href={computeJob.algorithmLogUrl}
rel="noreferrer" target="_blank"
> rel="noreferrer"
View Log >
</a> View Log
</a>
) : (
'No logs found'
)}
</ListItem> </ListItem>
{computeJob.resultsUrls?.map((url, i) => ( {computeJob.resultsUrls?.map((url, i) =>
<ListItem key={shortid.generate()}> url ? (
<a href={url} target="_blank" rel="noreferrer"> <ListItem key={shortid.generate()}>
View Result {i} <a href={url} target="_blank" rel="noreferrer">
</a> View Result {i}
</ListItem> </a>
))} </ListItem>
) : (
'No results found.'
)
)}
</ul> </ul>
</> </>
))} ))}