Commit 1454b8c1 authored by Winnie Hellmann's avatar Winnie Hellmann

Resolve conflicts in app/assets/javascripts/notes/components/noteable_discussion.vue

parent d001d0b9
...@@ -6,12 +6,9 @@ import { truncateSha } from '~/lib/utils/text_utility'; ...@@ -6,12 +6,9 @@ import { truncateSha } from '~/lib/utils/text_utility';
import { s__, __, sprintf } from '~/locale'; import { s__, __, sprintf } from '~/locale';
import systemNote from '~/vue_shared/components/notes/system_note.vue'; import systemNote from '~/vue_shared/components/notes/system_note.vue';
import icon from '~/vue_shared/components/icon.vue'; import icon from '~/vue_shared/components/icon.vue';
<<<<<<< HEAD
import batchCommentsDiffLineNoteFormMixin from 'ee/batch_comments/mixins/diff_line_note_form'; import batchCommentsDiffLineNoteFormMixin from 'ee/batch_comments/mixins/diff_line_note_form';
import DraftNote from 'ee/batch_comments/components/draft_note.vue'; import DraftNote from 'ee/batch_comments/components/draft_note.vue';
=======
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue'; import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
>>>>>>> upstream/master
import Flash from '../../flash'; import Flash from '../../flash';
import { SYSTEM_NOTE } from '../constants'; import { SYSTEM_NOTE } from '../constants';
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue'; import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
...@@ -43,11 +40,8 @@ export default { ...@@ -43,11 +40,8 @@ export default {
placeholderNote, placeholderNote,
placeholderSystemNote, placeholderSystemNote,
systemNote, systemNote,
<<<<<<< HEAD
DraftNote, DraftNote,
=======
TimelineEntryItem, TimelineEntryItem,
>>>>>>> upstream/master
}, },
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
...@@ -320,7 +314,6 @@ Please check your network connection and try again.`; ...@@ -320,7 +314,6 @@ Please check your network connection and try again.`;
<template> <template>
<timeline-entry-item class="note note-discussion" :class="componentClassName"> <timeline-entry-item class="note note-discussion" :class="componentClassName">
<div class="timeline-content">
<div :data-discussion-id="discussion.id" class="discussion js-discussion-container"> <div :data-discussion-id="discussion.id" class="discussion js-discussion-container">
<div v-if="shouldRenderDiffs" class="discussion-header note-wrapper"> <div v-if="shouldRenderDiffs" class="discussion-header note-wrapper">
<div v-once class="timeline-icon"> <div v-once class="timeline-icon">
...@@ -388,21 +381,6 @@ Please check your network connection and try again.`; ...@@ -388,21 +381,6 @@ Please check your network connection and try again.`;
@handleDeleteNote="deleteNoteHandler" @handleDeleteNote="deleteNoteHandler"
/> />
</template> </template>
<<<<<<< HEAD
</ul>
<draft-note
v-if="showDraft(discussion.reply_id)"
:key="`draft_${discussion.id}`"
:draft="draftForDiscussion(discussion.reply_id)"
/>
<div
v-else-if="!isRepliesCollapsed"
:class="{ 'is-replying': isReplying }"
class="discussion-reply-holder"
>
<template v-if="!isReplying && canReply">
<div class="discussion-with-resolve-btn">
=======
</template> </template>
<template v-else> <template v-else>
<component <component
...@@ -416,8 +394,13 @@ Please check your network connection and try again.`; ...@@ -416,8 +394,13 @@ Please check your network connection and try again.`;
</component> </component>
</template> </template>
</ul> </ul>
<draft-note
v-if="showDraft(discussion.reply_id)"
:key="`draft_${discussion.id}`"
:draft="draftForDiscussion(discussion.reply_id)"
/>
<div <div
v-if="!isRepliesCollapsed" v-else-if="!isRepliesCollapsed"
:class="{ 'is-replying': isReplying }" :class="{ 'is-replying': isReplying }"
class="discussion-reply-holder" class="discussion-reply-holder"
> >
...@@ -432,7 +415,6 @@ Please check your network connection and try again.`; ...@@ -432,7 +415,6 @@ Please check your network connection and try again.`;
Reply... Reply...
</button> </button>
<div v-if="discussion.resolvable"> <div v-if="discussion.resolvable">
>>>>>>> upstream/master
<button <button
type="button" type="button"
class="btn btn-default mr-sm-2" class="btn btn-default mr-sm-2"
...@@ -468,21 +450,6 @@ Please check your network connection and try again.`; ...@@ -468,21 +450,6 @@ Please check your network connection and try again.`;
</button> </button>
</div> </div>
</div> </div>
<<<<<<< HEAD
</template>
<note-form
v-if="isReplying"
ref="noteForm"
:discussion="discussion"
:is-editing="false"
save-button-title="Comment"
@handleFormUpdateAddToReview="addReplyToReview"
@handleFormUpdate="saveReply"
@cancelForm="cancelReplyForm"
/>
<note-signed-out-widget v-if="!canReply" />
</div>
=======
</div> </div>
</template> </template>
<note-form <note-form
...@@ -491,16 +458,15 @@ Please check your network connection and try again.`; ...@@ -491,16 +458,15 @@ Please check your network connection and try again.`;
:discussion="discussion" :discussion="discussion"
:is-editing="false" :is-editing="false"
save-button-title="Comment" save-button-title="Comment"
@handleFormUpdateAddToReview="addReplyToReview"
@handleFormUpdate="saveReply" @handleFormUpdate="saveReply"
@cancelForm="cancelReplyForm" @cancelForm="cancelReplyForm"
/> />
<note-signed-out-widget v-if="!canReply" /> <note-signed-out-widget v-if="!canReply" />
>>>>>>> upstream/master
</div> </div>
</div> </div>
</component> </component>
</div> </div>
</div> </div>
</div>
</timeline-entry-item> </timeline-entry-item>
</template> </template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment