run: check that run is not null
This commit is contained in:
parent
b16dd420e6
commit
8787b14e53
|
@ -1,51 +1,53 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<RunDetail :run="run"/>
|
<RunDetail :run="run"/>
|
||||||
<div v-if="run.phase != 'setuperror'">
|
<div v-if="run">
|
||||||
<div class="tabs">
|
<div v-if="run.phase != 'setuperror'">
|
||||||
<ul>
|
<div class="tabs">
|
||||||
<li>
|
<ul>
|
||||||
<a>Tasks</a>
|
<li>
|
||||||
</li>
|
<a>Tasks</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-if="run" class="tasks-list">
|
<div v-if="run" class="tasks-list">
|
||||||
<div v-for="task in run.sortedTasks" v-bind:key="task.id" :class="taskClass(task)">
|
<div v-for="task in run.sortedTasks" v-bind:key="task.id" :class="taskClass(task)">
|
||||||
<div class="task-content">
|
<div class="task-content">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<router-link class="column is-10" tag="a" :to="runTaskLink(task)">
|
<router-link class="column is-10" tag="a" :to="runTaskLink(task)">
|
||||||
<span class="name">{{task.name}}</span>
|
<span class="name">{{task.name}}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<span
|
<span
|
||||||
class="tag"
|
class="tag"
|
||||||
v-if="run.tasks_waiting_approval.includes(task.id)"
|
v-if="run.tasks_waiting_approval.includes(task.id)"
|
||||||
>Waiting approval</span>
|
>Waiting approval</span>
|
||||||
|
</div>
|
||||||
|
<div class="parents column">
|
||||||
|
<span v-if="parents(task).length > 0">depends on: </span>
|
||||||
|
<span class="parent" v-for="dep in parents(task)" v-bind:key="dep">{{dep}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="parents column">
|
<!-- <span
|
||||||
<span v-if="parents(task).length > 0">depends on: </span>
|
|
||||||
<span class="parent" v-for="dep in parents(task)" v-bind:key="dep">{{dep}}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- <span
|
|
||||||
class="duration"
|
class="duration"
|
||||||
v-if="duration && (step.Phase == 'success' || step.Phase == 'failed') "
|
v-if="duration && (step.Phase == 'success' || step.Phase == 'failed') "
|
||||||
>{{duration}}</span>-->
|
>{{duration}}</span>-->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-else>
|
||||||
<div v-else>
|
<div class="tabs">
|
||||||
<div class="tabs">
|
<ul>
|
||||||
<ul>
|
<li>
|
||||||
<li>
|
<a>Setup Errors</a>
|
||||||
<a>Setup Errors</a>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
<div class="setuperrors">
|
||||||
<div class="setuperrors">
|
<span class="error-line" v-for="(error, i) in run.setup_errors" v-bind:key="i">{{error}}</span>
|
||||||
<span class="error-line" v-for="(error, i) in run.setup_errors" v-bind:key="i">{{error}}</span>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue