Show run setup errors
This commit is contained in:
parent
c8effcc334
commit
b4cd9806b0
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<RunDetail :run="run"/>
|
<RunDetail :run="run"/>
|
||||||
|
<div v-if="run.phase != 'setuperror'">
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -18,7 +18,10 @@
|
||||||
<span class="name">{{task.name}}</span>
|
<span class="name">{{task.name}}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<span class="tag" v-if="run.tasks_waiting_approval.includes(task.id)">Waiting approval</span>
|
<span
|
||||||
|
class="tag"
|
||||||
|
v-if="run.tasks_waiting_approval.includes(task.id)"
|
||||||
|
>Waiting approval</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="parents column">
|
<div class="parents column">
|
||||||
<span v-if="parents(task).length > 0">depends on: </span>
|
<span v-if="parents(task).length > 0">depends on: </span>
|
||||||
|
@ -33,6 +36,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<div class="tabs">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a>Setup Errors</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="setuperrors">
|
||||||
|
<span class="error-line" v-for="(error, i) in run.setup_errors" v-bind:key="i">{{error}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -156,4 +172,23 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setuperrors {
|
||||||
|
background-color: #222;
|
||||||
|
color: #f1f1f1;
|
||||||
|
font-family: Cousine, monospace;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 19px;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
text-align: left;
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
|
.error-line {
|
||||||
|
pre {
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -117,6 +117,7 @@ export default {
|
||||||
runResultClass(run) {
|
runResultClass(run) {
|
||||||
let status = this.runStatus(run);
|
let status = this.runStatus(run);
|
||||||
|
|
||||||
|
if (status == "setuperror") return "setuperror";
|
||||||
if (status == "queued") return "unknown";
|
if (status == "queued") return "unknown";
|
||||||
if (status == "cancelled") return "failed";
|
if (status == "cancelled") return "failed";
|
||||||
if (status == "running") return "running";
|
if (status == "running") return "running";
|
||||||
|
@ -206,6 +207,10 @@ export default {
|
||||||
border-left: 5px solid $grey-lighter;
|
border-left: 5px solid $grey-lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setuperror {
|
||||||
|
border-left: 5px solid $yellow;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -102,6 +102,7 @@ export default {
|
||||||
},
|
},
|
||||||
runResultClass(run) {
|
runResultClass(run) {
|
||||||
if (run.result == "unknown") {
|
if (run.result == "unknown") {
|
||||||
|
if (run.phase == "setuperror") return "setuperror";
|
||||||
if (run.phase == "queued") return "unknown";
|
if (run.phase == "queued") return "unknown";
|
||||||
if (run.phase == "cancelled") return "failed";
|
if (run.phase == "cancelled") return "failed";
|
||||||
if (run.phase == "running") return "running";
|
if (run.phase == "running") return "running";
|
||||||
|
@ -218,6 +219,10 @@ export default {
|
||||||
border-left: 5px solid $grey-lighter;
|
border-left: 5px solid $grey-lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setuperror {
|
||||||
|
border-left: 5px solid $yellow;
|
||||||
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
flex: 0 0 30%;
|
flex: 0 0 30%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -13,7 +13,6 @@ $purple: #8e44ad;
|
||||||
$red: #e42522;
|
$red: #e42522;
|
||||||
$white-ter: #ecf0f1;
|
$white-ter: #ecf0f1;
|
||||||
$primary: #34495e !default;
|
$primary: #34495e !default;
|
||||||
$yellow-invert: #fff;
|
|
||||||
|
|
||||||
$grey-lighter-invert: findColorInvert($grey-lighter);
|
$grey-lighter-invert: findColorInvert($grey-lighter);
|
||||||
$green-invert: findColorInvert($green);
|
$green-invert: findColorInvert($green);
|
||||||
|
|
Loading…
Reference in New Issue