Show correct download link in status
This commit is contained in:
parent
27ac4104dc
commit
4009ed345b
|
@ -92,7 +92,7 @@ async function status(id) {
|
|||
jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`;
|
||||
}
|
||||
else if (rows[0].completed !== null) {
|
||||
jobStatus = `Completed ${rows[0].completed} <a href="/model/${rows[0].model}/${id}">Download</a>`;
|
||||
jobStatus = `Completed ${rows[0].completed} <a href="/model/${id}">Download</a>`;
|
||||
}
|
||||
else if (rows[0].started !== null) {
|
||||
jobStatus = `Started ${rows[0].started}`;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -92,7 +92,7 @@ async function status (id : string) : Promise<string> {
|
|||
} else if (rows[0].failed !== null) {
|
||||
jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`;
|
||||
} else if (rows[0].completed !== null) {
|
||||
jobStatus = `Completed ${rows[0].completed} <a href="/model/${rows[0].model}/${id}">Download</a>`;
|
||||
jobStatus = `Completed ${rows[0].completed} <a href="/model/${id}">Download</a>`;
|
||||
} else if (rows[0].started !== null) {
|
||||
jobStatus = `Started ${rows[0].started}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue