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

reply_button.vue « note_actions « components « notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ce030915048597e58de7df52951d2fc6755ab42 (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
<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"
    size="small"
    icon="comment"
    :title="$options.i18n.buttonText"
    :aria-label="$options.i18n.buttonText"
    @click="$emit('startReplying')"
  />
</template>