summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jobs/components/header.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/jobs/components/header.vue')
-rw-r--r--app/assets/javascripts/jobs/components/header.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/jobs/components/header.vue b/app/assets/javascripts/jobs/components/header.vue
index 9e3f659db5f..357bc9aab17 100644
--- a/app/assets/javascripts/jobs/components/header.vue
+++ b/app/assets/javascripts/jobs/components/header.vue
@@ -30,8 +30,12 @@
shouldRenderContent() {
return !this.isLoading && Object.keys(this.job).length;
},
+ /**
+ * When job has not started the key will be `false`
+ * When job started the key will be a string with a date.
+ */
jobStarted() {
- return this.job.started;
+ return !this.job.started === false;
},
},
watch: {
@@ -72,6 +76,7 @@
<loading-icon
v-if="isLoading"
size="2"
+ class="prepend-top-default append-bottom-default"
/>
</div>
</template>