blob: bb0c3b0a694c2bb157fb78c0218d85883ceb08ab (
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
44
45
46
|
<script>
import { GlButton } from '@gitlab/ui';
export default {
components: {
GlButton,
},
props: {
emojis: {
type: Array,
required: true,
},
renderGroup: {
type: Boolean,
required: true,
},
},
methods: {
clickEmoji(emoji) {
this.$emit('emoji-click', emoji);
},
},
};
</script>
<template>
<div class="gl-display-flex gl-flex-wrap gl-mb-2">
<template v-if="renderGroup">
<gl-button
v-for="emoji in emojis"
:key="emoji"
type="button"
category="tertiary"
class="emoji-picker-emoji"
:aria-label="emoji"
data-testid="emoji-button"
button-text-classes="gl-display-none!"
@click="clickEmoji(emoji)"
>
<template #emoji>
<gl-emoji :data-name="emoji" class="gl-mr-0!" />
</template>
</gl-button>
</template>
</div>
</template>
|