blob: 6559d6c727263f9cfecaeb2f16ef4de2098f1f3f (
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
|
<script>
import { GlLink } from '@gitlab/ui';
export default {
components: { GlLink },
props: {
event: {
type: Object,
required: true,
},
},
computed: {
target() {
return this.event.target;
},
targetLinkText() {
return this.target.reference_link_text;
},
targetLinkAttributes() {
return {
href: this.target.web_url,
title: this.target.title,
};
},
},
};
</script>
<template>
<gl-link v-if="target" v-bind="targetLinkAttributes">{{ targetLinkText }}</gl-link>
</template>
|