This commit is contained in:
@@ -170,16 +170,11 @@ export default {
|
||||
const jobLogRes = await window.$gz.api.get(
|
||||
`job-operations/logs/${jobId}`
|
||||
);
|
||||
//console.log(jobLogRes);
|
||||
//todo:look for reportfilename property in job log here and then put in reportUrl
|
||||
//debugger;
|
||||
if (Array.isArray(jobLogRes.data)) {
|
||||
//walk the array backwards as it's probably the final entry in the log
|
||||
for (var i = jobLogRes.data.length - 1; i >= 0; i--) {
|
||||
var v = jobLogRes.data[i].statusText;
|
||||
//console.log("value type is:", typeof v);
|
||||
if (v.includes("reportfilename")) {
|
||||
console.log("Parsing:", v);
|
||||
const o = JSON.parse(v);
|
||||
reportUrl = window.$gz.api.reportDownloadUrl(
|
||||
o.reportfilename
|
||||
|
||||
Reference in New Issue
Block a user