Read about our upcoming Code of Conduct on this issue

discussion_resolve_with_issue_button.vue 680 Bytes
Newer Older
1
2
<script>
import { GlTooltipDirective, GlButton } from '@gitlab/ui';
3
import Icon from '~/vue_shared/components/icon.vue';
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

export default {
  name: 'ResolveWithIssueButton',
  components: {
    Icon,
    GlButton,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
  props: {
    url: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="btn-group" role="group">
    <gl-button
      v-gl-tooltip
      :href="url"
28
      :title="s__('MergeRequests|Resolve this thread in a new issue')"
29
30
31
32
33
34
      class="new-issue-for-discussion discussion-create-issue-btn"
    >
      <icon name="issue-new" />
    </gl-button>
  </div>
</template>