2019-01-28 10:36:44 +00:00
|
|
|
<script>
|
|
|
|
import { GlTooltipDirective } from '@gitlab/ui';
|
2019-12-11 12:08:10 +00:00
|
|
|
import icon from '~/vue_shared/components/icon.vue';
|
2020-01-30 06:08:49 +00:00
|
|
|
import discussionNavigation from '../mixins/discussion_navigation';
|
2019-01-28 10:36:44 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'JumpToNextDiscussionButton',
|
|
|
|
components: {
|
|
|
|
icon,
|
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
GlTooltip: GlTooltipDirective,
|
|
|
|
},
|
2020-01-30 06:08:49 +00:00
|
|
|
mixins: [discussionNavigation],
|
2020-02-25 21:09:23 +00:00
|
|
|
props: {
|
|
|
|
fromDiscussionId: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
2019-01-28 10:36:44 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
<button
|
|
|
|
ref="button"
|
|
|
|
v-gl-tooltip
|
|
|
|
class="btn btn-default discussion-next-btn"
|
2020-01-30 06:08:49 +00:00
|
|
|
:title="s__('MergeRequests|Jump to next unresolved thread')"
|
2020-03-13 09:09:23 +00:00
|
|
|
data-track-event="click_button"
|
|
|
|
data-track-label="mr_next_unresolved_thread"
|
|
|
|
data-track-property="click_next_unresolved_thread"
|
2020-02-25 21:09:23 +00:00
|
|
|
@click="jumpToNextRelativeDiscussion(fromDiscussionId)"
|
2019-01-28 10:36:44 +00:00
|
|
|
>
|
|
|
|
<icon name="comment-next" />
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</template>
|