debian-mirror-gitlab/app/assets/javascripts/jobs/components/sidebar_detail_row.vue

33 lines
521 B
Vue
Raw Normal View History

2017-09-10 17:25:29 +05:30
<script>
export default {
name: 'SidebarDetailRow',
props: {
title: {
type: String,
required: false,
default: '',
},
value: {
type: String,
required: true,
},
},
computed: {
hasTitle() {
return this.title.length > 0;
},
},
};
</script>
<template>
<p class="build-detail-row">
<span
v-if="hasTitle"
2018-03-17 18:26:18 +05:30
class="build-light-text"
>
{{ title }}:
2017-09-10 17:25:29 +05:30
</span>
2018-03-17 18:26:18 +05:30
{{ value }}
2017-09-10 17:25:29 +05:30
</p>
</template>