summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/discussion_reply_placeholder.vue
blob: ab00ccdc09badb5b46dd5b1a7c27f3a6c4ff05ae (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
<script>
import { GlButton } from '@gitlab/ui';

export default {
  name: 'ReplyPlaceholder',
  components: {
    GlButton,
  },
  props: {
    buttonText: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <gl-button
    category="primary"
    variant="success"
    class="js-vue-discussion-reply"
    :title="s__('MergeRequests|Add a reply')"
    @click="$emit('onClick')"
  >
    {{ buttonText }}
  </gl-button>
</template>