summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/note_actions
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 10:34:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-18 10:34:06 +0000
commit859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch)
treed7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /app/assets/javascripts/notes/components/note_actions
parent446d496a6d000c73a304be52587cd9bbc7493136 (diff)
downloadgitlab-ce-859a6fb938bb9ee2a317c46dfa4fcc1af49608f0.tar.gz
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
Diffstat (limited to 'app/assets/javascripts/notes/components/note_actions')
-rw-r--r--app/assets/javascripts/notes/components/note_actions/reply_button.vue29
1 files changed, 15 insertions, 14 deletions
diff --git a/app/assets/javascripts/notes/components/note_actions/reply_button.vue b/app/assets/javascripts/notes/components/note_actions/reply_button.vue
index acbbee13a6d..5ce03091504 100644
--- a/app/assets/javascripts/notes/components/note_actions/reply_button.vue
+++ b/app/assets/javascripts/notes/components/note_actions/reply_button.vue
@@ -1,7 +1,11 @@
<script>
import { GlTooltipDirective, GlButton } from '@gitlab/ui';
+import { __ } from '~/locale';
export default {
+ i18n: {
+ buttonText: __('Reply to comment'),
+ },
name: 'ReplyButton',
components: {
GlButton,
@@ -13,18 +17,15 @@ export default {
</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>
+ <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>