blob: 424a9d3fabd86071ce6a01acb9d64faf088a77f0 (
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
|
<script>
import { GlButton } from '@gitlab/ui';
import { s__ } from '~/locale';
import eventHub from '../event_hub';
export default {
components: {
GlButton,
},
props: {
displayText: {
type: String,
required: false,
default: s__('InviteMembers|Invite a group'),
},
classes: {
type: String,
required: false,
default: '',
},
},
methods: {
openModal() {
eventHub.$emit('openGroupModal');
},
},
};
</script>
<template>
<gl-button
:class="classes"
data-qa-selector="invite_a_group_button"
data-test-id="invite-group-button"
@click="openModal"
>
{{ displayText }}
</gl-button>
</template>
|