diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-02-25 16:38:29 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-02-25 16:38:29 +0000 |
commit | a26cd1235a6eda5fc32fb4fba2f32489536096e5 (patch) | |
tree | fe9392cc965315c22039b44dde720a6c9112e437 /app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue | |
parent | 15528c75549cc1be6cb0201556ea591953279e84 (diff) | |
download | gitlab-ce-a26cd1235a6eda5fc32fb4fba2f32489536096e5.tar.gz |
Extract ResolveWithIssueButton from NoteableDiscussion component
Diffstat (limited to 'app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue b/app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue new file mode 100644 index 00000000000..e413398696a --- /dev/null +++ b/app/assets/javascripts/notes/components/discussion_resolve_with_issue_button.vue @@ -0,0 +1,34 @@ +<script> +import Icon from '~/vue_shared/components/icon.vue'; +import { GlTooltipDirective, GlButton } from '@gitlab/ui'; + +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" + :title="s__('MergeRequests|Resolve this discussion in a new issue')" + class="new-issue-for-discussion discussion-create-issue-btn" + > + <icon name="issue-new" /> + </gl-button> + </div> +</template> |