mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
output relative time
This commit is contained in:
parent
d75d172c0c
commit
b0d9821535
@ -35,7 +35,7 @@ export default function ComputeDetailsModal({
|
|||||||
computeJob.did,
|
computeJob.did,
|
||||||
computeJob.jobId
|
computeJob.jobId
|
||||||
)
|
)
|
||||||
if (job && job.length > 0) {
|
if (job?.length > 0) {
|
||||||
computeJob.algorithmLogUrl = job[0].algorithmLogUrl
|
computeJob.algorithmLogUrl = job[0].algorithmLogUrl
|
||||||
// hack because ComputeJob returns resultsUrl instead of resultsUrls, issue created already
|
// hack because ComputeJob returns resultsUrl instead of resultsUrls, issue created already
|
||||||
computeJob.resultsUrls =
|
computeJob.resultsUrls =
|
||||||
@ -58,11 +58,11 @@ export default function ComputeDetailsModal({
|
|||||||
>
|
>
|
||||||
<h3 className={styles.title}>{computeJob.assetName}</h3>
|
<h3 className={styles.title}>{computeJob.assetName}</h3>
|
||||||
<p>
|
<p>
|
||||||
Created on <Time date={computeJob.dateCreated} isUnix />
|
Created <Time date={computeJob.dateCreated} isUnix relative />
|
||||||
{computeJob.dateFinished && (
|
{computeJob.dateFinished && (
|
||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
Finished on <Time date={computeJob.dateFinished} isUnix />
|
Finished <Time date={computeJob.dateFinished} isUnix relative />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
|
@ -51,7 +51,7 @@ const columns = [
|
|||||||
{
|
{
|
||||||
name: 'Finished',
|
name: 'Finished',
|
||||||
selector: function getTimeRow(row: ComputeJobMetaData) {
|
selector: function getTimeRow(row: ComputeJobMetaData) {
|
||||||
return <Time date={row.dateFinished} isUnix />
|
return <Time date={row.dateFinished} isUnix relative />
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user