Welcome to mirror list, hosted at ThFree Co, Russian Federation.

invite_member_trigger.vue « components « invite_member « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee89e0bbf7122cdbf026766cf722442296c7c8d3 (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
38
39
40
41
42
43
<script>
import { GlLink } from '@gitlab/ui';
import { OPEN_MODAL } from '../constants';
import eventHub from '../event_hub';

export default {
  components: {
    GlLink,
  },
  props: {
    displayText: {
      type: String,
      required: false,
      default: '',
    },
    event: {
      type: String,
      required: false,
      default: '',
    },
    label: {
      type: String,
      required: false,
      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>