diff --git a/src/components/collapse.vue b/src/components/collapse.vue index 7558393..6a6cece 100644 --- a/src/components/collapse.vue +++ b/src/components/collapse.vue @@ -22,6 +22,7 @@ { var data = event.data; // TODO(sgotti) ansi_up doesn't handle carriage return (\r), find a way to also handle it @@ -71,16 +70,13 @@ export default { }; }, getLogs: function() { - fetch( - apiurl( - "/logs?runID=" + - this.runid + - "&taskID=" + - this.taskid + - "&step=" + - this.step - ) - ) + let path = "/logs?runID=" + this.runid + "&taskID=" + this.taskid; + if (this.setup) { + path += "&setup"; + } else { + path += "&step=" + this.step; + } + fetch(apiurl(path)) .then(r => { if (r.status == 200) { return r.text(); diff --git a/src/components/task.vue b/src/components/task.vue index 2076c79..518c655 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -6,6 +6,12 @@ {{ task.status | capitalize }} +