HUGE REFACTOR / CLEANUP
if there is a issue it's probably something in here that was changed
This commit is contained in:
@@ -64,7 +64,6 @@ export default {
|
||||
},
|
||||
headers: [],
|
||||
errorObj: [],
|
||||
//cache display format stuff
|
||||
timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),
|
||||
languageName: window.$gz.locale.getResolvedLanguage(),
|
||||
hour12: window.$gz.locale.getHour12()
|
||||
@@ -79,22 +78,20 @@ export default {
|
||||
}`;
|
||||
},
|
||||
async handleError(jobId) {
|
||||
let vm = this;
|
||||
|
||||
if (!jobId || jobId == "00000000-0000-0000-0000-000000000000") {
|
||||
throw "Error: extension triggered handleError with empty jobId";
|
||||
}
|
||||
|
||||
if (jobId == "clear") {
|
||||
vm.errorObj = [];
|
||||
this.errorObj = [];
|
||||
return;
|
||||
}
|
||||
|
||||
let res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
const res = await window.$gz.api.get(`job-operations/logs/${jobId}`);
|
||||
if (res.data) {
|
||||
let ret = [];
|
||||
const ret = [];
|
||||
for (let i = 0; i < res.data.length; i++) {
|
||||
let o = res.data[i];
|
||||
const o = res.data[i];
|
||||
ret.push({
|
||||
id: i,
|
||||
created: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
|
||||
@@ -111,9 +108,9 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
vm.errorObj = ret;
|
||||
this.errorObj = ret;
|
||||
} else {
|
||||
vm.errorObj = [];
|
||||
this.errorObj = [];
|
||||
}
|
||||
},
|
||||
open(dls) {
|
||||
|
||||
Reference in New Issue
Block a user