summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/note_actions/reply_button.vue
blob: 0cd2afcf8a0d8047b1bd66efd4ccb849cc5c59db (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
<script>
import { GlTooltipDirective, GlButton } from '@gitlab/ui';
import { __ } from '~/locale';

export default {
  i18n: {
    buttonText: __('Reply to comment'),
  },
  name: 'ReplyButton',
  components: {
    GlButton,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
};
</script>

<template>
  <gl-button
    v-gl-tooltip
    data-track-event="click_button"
    data-track-label="reply_comment_button"
    category="tertiary"
    icon="comment"
    :title="$options.i18n.buttonText"
    :aria-label="$options.i18n.buttonText"
    @click="$emit('startReplying')"
  />
</template>