blob: 886b5cb29fca8a511d26ac39a6e250421bea4e1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<script>
import TooltipOnTruncate from '~/vue_shared/components/tooltip_on_truncate.vue';
import RunnerName from '../runner_name.vue';
export default {
components: {
TooltipOnTruncate,
RunnerName,
},
props: {
runner: {
type: Object,
required: true,
},
},
computed: {
description() {
return this.runner.description;
},
},
};
</script>
<template>
<div>
<slot :runner="runner" name="runner-name">
<runner-name :runner="runner" />
</slot>
<tooltip-on-truncate class="gl-display-block" :title="description" truncate-target="child">
<div class="gl-text-truncate">
{{ description }}
</div>
</tooltip-on-truncate>
</div>
</template>
|