summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/note_actions/reply_button.vue
blob: acbbee13a6d0b30f1dfe801b5fe8ef3325985d43 (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';

export default {
  name: 'ReplyButton',
  components: {
    GlButton,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
};
</script>

<template>
  <div class="gl-ml-2">
    <gl-button
      ref="button"
      v-gl-tooltip
      data-track-event="click_button"
      data-track-label="reply_comment_button"
      category="tertiary"
      size="small"
      icon="comment"
      :title="__('Reply to comment')"
      :aria-label="__('Reply to comment')"
      @click="$emit('startReplying')"
    />
  </div>
</template>