34 lines
722 B
Vue
34 lines
722 B
Vue
<script>
|
|
import { GlTooltipDirective, GlDeprecatedButton } from '@gitlab/ui';
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
|
|
|
export default {
|
|
name: 'ResolveWithIssueButton',
|
|
components: {
|
|
Icon,
|
|
GlDeprecatedButton,
|
|
},
|
|
directives: {
|
|
GlTooltip: GlTooltipDirective,
|
|
},
|
|
props: {
|
|
url: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="btn-group" role="group">
|
|
<gl-deprecated-button
|
|
v-gl-tooltip
|
|
:href="url"
|
|
:title="s__('MergeRequests|Resolve this thread in a new issue')"
|
|
class="new-issue-for-discussion discussion-create-issue-btn"
|
|
>
|
|
<icon name="issue-new" />
|
|
</gl-deprecated-button>
|
|
</div>
|
|
</template>
|