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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
commit0c872e02b2c822e3397515ec324051ff540f0cd5 (patch)
treece2fb6ce7030e4dad0f4118d21ab6453e5938cdd /app/assets/javascripts/diffs/components/diff_discussion_reply.vue
parentf7e05a6853b12f02911494c4b3fe53d9540d74fc (diff)
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_discussion_reply.vue')
-rw-r--r--app/assets/javascripts/diffs/components/diff_discussion_reply.vue17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_discussion_reply.vue b/app/assets/javascripts/diffs/components/diff_discussion_reply.vue
index 3766c125325..8b747aa08dd 100644
--- a/app/assets/javascripts/diffs/components/diff_discussion_reply.vue
+++ b/app/assets/javascripts/diffs/components/diff_discussion_reply.vue
@@ -1,13 +1,18 @@
<script>
+import { GlButton } from '@gitlab/ui';
import { mapGetters } from 'vuex';
-import ReplyPlaceholder from '~/notes/components/discussion_reply_placeholder.vue';
import NoteSignedOutWidget from '~/notes/components/note_signed_out_widget.vue';
+import { START_THREAD } from '../i18n';
+
export default {
name: 'DiffDiscussionReply',
+ i18n: {
+ START_THREAD,
+ },
components: {
+ GlButton,
NoteSignedOutWidget,
- ReplyPlaceholder,
},
props: {
hasForm: {
@@ -34,11 +39,9 @@ export default {
<template v-if="userCanReply">
<slot v-if="hasForm" name="form"></slot>
<template v-else-if="renderReplyPlaceholder">
- <reply-placeholder
- :placeholder-text="__('Start a new discussion…')"
- :label-text="__('New discussion')"
- @focus="$emit('showNewDiscussionForm')"
- />
+ <gl-button @click="$emit('showNewDiscussionForm')">
+ {{ $options.i18n.START_THREAD }}
+ </gl-button>
</template>
</template>
<note-signed-out-widget v-else />