blob: 6e886e0e0027ea3d1c7313143a7f3901818cd515 (
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
36
37
|
<script>
import { GlLink } from '@gitlab/ui';
import eventHub from '../event_hub';
import { OPEN_MODAL } from '../constants';
export default {
components: {
GlLink,
},
inject: {
displayText: {
default: '',
},
event: {
default: '',
},
label: {
default: '',
},
},
methods: {
openModal() {
eventHub.$emit(OPEN_MODAL);
},
},
};
</script>
<template>
<gl-link
data-is-link="true"
:data-track-event="event"
:data-track-label="label"
@click="openModal"
>{{ displayText }}
</gl-link>
</template>
|