2017-06-13 13:01:59 -04:00
|
|
|
<script>
|
2018-11-26 18:45:44 -05:00
|
|
|
import _ from 'underscore';
|
2018-03-16 16:16:21 -04:00
|
|
|
import { mapActions, mapGetters } from 'vuex';
|
2018-11-09 04:44:07 -05:00
|
|
|
import { GlTooltipDirective } from '@gitlab/ui';
|
2018-06-21 08:22:40 -04:00
|
|
|
import { truncateSha } from '~/lib/utils/text_utility';
|
2018-11-26 18:45:44 -05:00
|
|
|
import { s__, __, sprintf } from '~/locale';
|
2019-03-04 16:00:45 -05:00
|
|
|
import { clearDraft, getDiscussionReplyKey } from '~/lib/utils/autosave';
|
2018-11-08 02:58:45 -05:00
|
|
|
import icon from '~/vue_shared/components/icon.vue';
|
2019-02-28 05:55:13 -05:00
|
|
|
import diffLineNoteFormMixin from 'ee_else_ce/notes/mixins/diff_line_note_form';
|
2018-11-29 08:54:40 -05:00
|
|
|
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
|
2018-03-16 16:16:21 -04:00
|
|
|
import Flash from '../../flash';
|
|
|
|
import userAvatarLink from '../../vue_shared/components/user_avatar/user_avatar_link.vue';
|
|
|
|
import noteHeader from './note_header.vue';
|
|
|
|
import noteSignedOutWidget from './note_signed_out_widget.vue';
|
|
|
|
import noteEditedText from './note_edited_text.vue';
|
|
|
|
import noteForm from './note_form.vue';
|
|
|
|
import diffWithNote from './diff_with_note.vue';
|
|
|
|
import noteable from '../mixins/noteable';
|
|
|
|
import resolvable from '../mixins/resolvable';
|
2018-07-31 22:21:14 -04:00
|
|
|
import discussionNavigation from '../mixins/discussion_navigation';
|
2019-02-18 04:43:13 -05:00
|
|
|
import eventHub from '../event_hub';
|
2019-05-01 06:04:07 -04:00
|
|
|
import DiscussionNotes from './discussion_notes.vue';
|
2019-04-10 12:23:05 -04:00
|
|
|
import DiscussionActions from './discussion_actions.vue';
|
2017-06-20 20:50:44 -04:00
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
export default {
|
2018-06-21 08:22:40 -04:00
|
|
|
name: 'NoteableDiscussion',
|
2018-03-16 16:16:21 -04:00
|
|
|
components: {
|
2018-11-08 02:58:45 -05:00
|
|
|
icon,
|
2018-03-16 16:16:21 -04:00
|
|
|
userAvatarLink,
|
|
|
|
noteHeader,
|
|
|
|
noteSignedOutWidget,
|
|
|
|
noteEditedText,
|
|
|
|
noteForm,
|
2019-02-28 05:55:13 -05:00
|
|
|
DraftNote: () => import('ee_component/batch_comments/components/draft_note.vue'),
|
2018-11-29 08:54:40 -05:00
|
|
|
TimelineEntryItem,
|
2019-05-01 06:04:07 -04:00
|
|
|
DiscussionNotes,
|
2019-04-10 12:23:05 -04:00
|
|
|
DiscussionActions,
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
|
|
|
directives: {
|
2018-11-09 04:44:07 -05:00
|
|
|
GlTooltip: GlTooltipDirective,
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
2019-03-04 16:00:45 -05:00
|
|
|
mixins: [noteable, resolvable, discussionNavigation, diffLineNoteFormMixin],
|
2018-03-16 16:16:21 -04:00
|
|
|
props: {
|
2018-06-21 08:22:40 -04:00
|
|
|
discussion: {
|
2018-03-16 16:16:21 -04:00
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2018-12-13 14:17:19 -05:00
|
|
|
line: {
|
|
|
|
type: Object,
|
|
|
|
required: false,
|
|
|
|
default: null,
|
|
|
|
},
|
2018-06-21 08:22:40 -04:00
|
|
|
renderDiffFile: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
alwaysExpanded: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
2018-07-31 22:21:14 -04:00
|
|
|
discussionsByDiffOrder: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
2018-12-13 14:17:19 -05:00
|
|
|
helpPagePath: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: '',
|
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isReplying: false,
|
|
|
|
isResolving: false,
|
|
|
|
resolveAsThread: true,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapGetters([
|
2019-02-14 05:07:13 -05:00
|
|
|
'convertedDisscussionIds',
|
2018-03-16 16:16:21 -04:00
|
|
|
'getNoteableData',
|
2019-05-01 06:04:07 -04:00
|
|
|
'userCanReply',
|
2018-07-31 22:21:14 -04:00
|
|
|
'nextUnresolvedDiscussionId',
|
2018-11-09 04:44:07 -05:00
|
|
|
'unresolvedDiscussionsCount',
|
|
|
|
'hasUnresolvedDiscussions',
|
2018-12-08 02:19:03 -05:00
|
|
|
'showJumpToNextDiscussion',
|
2018-03-16 16:16:21 -04:00
|
|
|
]),
|
|
|
|
author() {
|
2019-02-26 07:39:59 -05:00
|
|
|
return this.firstNote.author;
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
2019-03-04 16:00:18 -05:00
|
|
|
autosaveKey() {
|
|
|
|
return getDiscussionReplyKey(this.firstNote.noteable_type, this.discussion.id);
|
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
newNotePath() {
|
|
|
|
return this.getNoteableData.create_note_path;
|
|
|
|
},
|
2019-02-26 07:39:59 -05:00
|
|
|
firstNote() {
|
2018-11-08 02:58:45 -05:00
|
|
|
return this.discussion.notes.slice(0, 1)[0];
|
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
lastUpdatedBy() {
|
2018-06-21 08:22:40 -04:00
|
|
|
const { notes } = this.discussion;
|
2017-08-18 11:40:07 -04:00
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
if (notes.length > 1) {
|
|
|
|
return notes[notes.length - 1].author;
|
|
|
|
}
|
2017-08-18 11:40:07 -04:00
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
return null;
|
|
|
|
},
|
|
|
|
lastUpdatedAt() {
|
2018-06-21 08:22:40 -04:00
|
|
|
const { notes } = this.discussion;
|
2017-08-18 11:40:07 -04:00
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
if (notes.length > 1) {
|
|
|
|
return notes[notes.length - 1].created_at;
|
|
|
|
}
|
2017-08-18 11:40:07 -04:00
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
return null;
|
|
|
|
},
|
2018-06-21 08:22:40 -04:00
|
|
|
resolvedText() {
|
2018-11-09 04:44:07 -05:00
|
|
|
return this.discussion.resolved_by_push ? __('Automatically resolved') : __('Resolved');
|
2018-07-31 22:21:14 -04:00
|
|
|
},
|
2018-12-08 02:19:03 -05:00
|
|
|
shouldShowJumpToNextDiscussion() {
|
|
|
|
return this.showJumpToNextDiscussion(
|
|
|
|
this.discussion.id,
|
|
|
|
this.discussionsByDiffOrder ? 'diff' : 'discussion',
|
|
|
|
);
|
|
|
|
},
|
2018-06-21 08:22:40 -04:00
|
|
|
shouldRenderDiffs() {
|
2018-11-09 04:44:07 -05:00
|
|
|
return this.discussion.diff_discussion && this.renderDiffFile;
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
2018-11-08 02:58:45 -05:00
|
|
|
shouldGroupReplies() {
|
2018-11-09 04:44:07 -05:00
|
|
|
return !this.shouldRenderDiffs && !this.discussion.diff_discussion;
|
2018-11-08 02:58:45 -05:00
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
wrapperComponent() {
|
2018-06-21 08:22:40 -04:00
|
|
|
return this.shouldRenderDiffs ? diffWithNote : 'div';
|
|
|
|
},
|
|
|
|
wrapperComponentProps() {
|
|
|
|
if (this.shouldRenderDiffs) {
|
2018-11-09 14:48:41 -05:00
|
|
|
return { discussion: this.discussion };
|
2018-06-21 08:22:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return {};
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
2018-11-08 02:58:45 -05:00
|
|
|
componentClassName() {
|
|
|
|
if (this.shouldRenderDiffs) {
|
|
|
|
if (!this.lastUpdatedAt && !this.discussion.resolved) {
|
|
|
|
return 'unresolved';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
|
|
},
|
2019-03-22 10:33:01 -04:00
|
|
|
isExpanded() {
|
|
|
|
return this.discussion.expanded || this.alwaysExpanded;
|
|
|
|
},
|
|
|
|
shouldHideDiscussionBody() {
|
|
|
|
return this.shouldRenderDiffs && !this.isExpanded;
|
2018-11-08 02:58:45 -05:00
|
|
|
},
|
2018-11-26 18:45:44 -05:00
|
|
|
actionText() {
|
|
|
|
const linkStart = `<a href="${_.escape(this.discussion.discussion_path)}">`;
|
|
|
|
const linkEnd = '</a>';
|
|
|
|
|
2018-12-11 05:22:00 -05:00
|
|
|
let { commit_id: commitId } = this.discussion;
|
|
|
|
if (commitId) {
|
|
|
|
commitId = `<span class="commit-sha">${truncateSha(commitId)}</span>`;
|
|
|
|
}
|
|
|
|
|
2018-12-20 18:19:44 -05:00
|
|
|
const {
|
|
|
|
for_commit: isForCommit,
|
|
|
|
diff_discussion: isDiffDiscussion,
|
|
|
|
active: isActive,
|
|
|
|
} = this.discussion;
|
2018-11-26 18:45:44 -05:00
|
|
|
|
2018-12-20 18:19:44 -05:00
|
|
|
let text = s__('MergeRequests|started a discussion');
|
|
|
|
if (isForCommit) {
|
2018-11-26 18:45:44 -05:00
|
|
|
text = s__(
|
|
|
|
'MergeRequests|started a discussion on commit %{linkStart}%{commitId}%{linkEnd}',
|
|
|
|
);
|
2018-12-20 18:19:44 -05:00
|
|
|
} else if (isDiffDiscussion && commitId) {
|
|
|
|
text = isActive
|
|
|
|
? s__('MergeRequests|started a discussion on commit %{linkStart}%{commitId}%{linkEnd}')
|
|
|
|
: s__(
|
|
|
|
'MergeRequests|started a discussion on an outdated change in commit %{linkStart}%{commitId}%{linkEnd}',
|
|
|
|
);
|
|
|
|
} else if (isDiffDiscussion) {
|
|
|
|
text = isActive
|
|
|
|
? s__('MergeRequests|started a discussion on %{linkStart}the diff%{linkEnd}')
|
|
|
|
: s__(
|
|
|
|
'MergeRequests|started a discussion on %{linkStart}an old version of the diff%{linkEnd}',
|
|
|
|
);
|
2018-11-26 18:45:44 -05:00
|
|
|
}
|
|
|
|
|
2018-12-20 18:19:44 -05:00
|
|
|
return sprintf(text, { commitId, linkStart, linkEnd }, false);
|
2018-11-26 18:45:44 -05:00
|
|
|
},
|
2018-12-13 14:17:19 -05:00
|
|
|
diffLine() {
|
2019-01-22 07:35:28 -05:00
|
|
|
if (this.line) {
|
|
|
|
return this.line;
|
|
|
|
}
|
|
|
|
|
2018-12-13 14:17:19 -05:00
|
|
|
if (this.discussion.diff_discussion && this.discussion.truncated_diff_lines) {
|
|
|
|
return this.discussion.truncated_diff_lines.slice(-1)[0];
|
|
|
|
}
|
|
|
|
|
2019-01-22 07:35:28 -05:00
|
|
|
return null;
|
2018-12-13 14:17:19 -05:00
|
|
|
},
|
2019-02-25 11:38:29 -05:00
|
|
|
resolveWithIssuePath() {
|
2019-05-01 06:04:07 -04:00
|
|
|
return !this.discussionResolved ? this.discussion.resolve_with_issue_path : '';
|
2019-02-25 11:38:29 -05:00
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
2019-02-18 04:43:13 -05:00
|
|
|
created() {
|
|
|
|
eventHub.$on('startReplying', this.onStartReplying);
|
|
|
|
},
|
|
|
|
beforeDestroy() {
|
|
|
|
eventHub.$off('startReplying', this.onStartReplying);
|
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
methods: {
|
|
|
|
...mapActions([
|
|
|
|
'saveNote',
|
|
|
|
'toggleDiscussion',
|
|
|
|
'removePlaceholderNotes',
|
|
|
|
'toggleResolveNote',
|
2018-06-21 08:22:40 -04:00
|
|
|
'expandDiscussion',
|
2019-02-18 02:16:13 -05:00
|
|
|
'removeConvertedDiscussion',
|
2018-03-16 16:16:21 -04:00
|
|
|
]),
|
2018-06-21 08:22:40 -04:00
|
|
|
truncateSha,
|
2018-03-16 16:16:21 -04:00
|
|
|
toggleDiscussionHandler() {
|
2018-06-21 08:22:40 -04:00
|
|
|
this.toggleDiscussion({ discussionId: this.discussion.id });
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
|
|
|
showReplyForm() {
|
|
|
|
this.isReplying = true;
|
|
|
|
},
|
2018-07-31 15:24:16 -04:00
|
|
|
cancelReplyForm(shouldConfirm, isDirty) {
|
|
|
|
if (shouldConfirm && isDirty) {
|
|
|
|
const msg = s__('Notes|Are you sure you want to cancel creating this comment?');
|
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
// eslint-disable-next-line no-alert
|
2018-07-31 15:24:16 -04:00
|
|
|
if (!window.confirm(msg)) {
|
2018-03-16 16:16:21 -04:00
|
|
|
return;
|
2017-07-03 18:31:11 -04:00
|
|
|
}
|
2018-03-16 16:16:21 -04:00
|
|
|
}
|
2017-07-03 18:31:11 -04:00
|
|
|
|
2019-02-18 02:16:13 -05:00
|
|
|
if (this.convertedDisscussionIds.includes(this.discussion.id)) {
|
|
|
|
this.removeConvertedDiscussion(this.discussion.id);
|
|
|
|
}
|
|
|
|
|
2018-07-30 20:51:06 -04:00
|
|
|
this.isReplying = false;
|
2019-03-04 16:00:45 -05:00
|
|
|
clearDraft(this.autosaveKey);
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
|
|
|
saveReply(noteText, form, callback) {
|
2018-06-21 08:22:40 -04:00
|
|
|
const postData = {
|
|
|
|
in_reply_to_discussion_id: this.discussion.reply_id,
|
|
|
|
target_type: this.getNoteableData.targetType,
|
|
|
|
note: { note: noteText },
|
|
|
|
};
|
|
|
|
|
2019-02-14 05:07:13 -05:00
|
|
|
if (this.convertedDisscussionIds.includes(this.discussion.id)) {
|
|
|
|
postData.return_discussion = true;
|
|
|
|
}
|
|
|
|
|
2018-06-21 08:22:40 -04:00
|
|
|
if (this.discussion.for_commit) {
|
|
|
|
postData.note_project_id = this.discussion.project_id;
|
|
|
|
}
|
|
|
|
|
2018-03-16 16:16:21 -04:00
|
|
|
const replyData = {
|
|
|
|
endpoint: this.newNotePath,
|
|
|
|
flashContainer: this.$el,
|
2018-06-21 08:22:40 -04:00
|
|
|
data: postData,
|
2018-03-16 16:16:21 -04:00
|
|
|
};
|
2017-06-20 20:40:36 -04:00
|
|
|
|
2018-06-21 08:22:40 -04:00
|
|
|
this.isReplying = false;
|
2018-03-16 16:16:21 -04:00
|
|
|
this.saveNote(replyData)
|
|
|
|
.then(() => {
|
2019-03-04 16:00:45 -05:00
|
|
|
clearDraft(this.autosaveKey);
|
2018-03-16 16:16:21 -04:00
|
|
|
callback();
|
|
|
|
})
|
|
|
|
.catch(err => {
|
|
|
|
this.removePlaceholderNotes();
|
|
|
|
this.isReplying = true;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
const msg = `Your comment could not be submitted!
|
2018-01-03 18:14:55 -05:00
|
|
|
Please check your network connection and try again.`;
|
2018-03-16 16:16:21 -04:00
|
|
|
Flash(msg, 'alert', this.$el);
|
|
|
|
this.$refs.noteForm.note = noteText;
|
|
|
|
callback(err);
|
2017-08-22 18:10:24 -04:00
|
|
|
});
|
2018-03-16 16:16:21 -04:00
|
|
|
});
|
|
|
|
},
|
2018-06-21 08:22:40 -04:00
|
|
|
jumpToNextDiscussion() {
|
2018-09-03 11:43:35 -04:00
|
|
|
const nextId = this.nextUnresolvedDiscussionId(
|
|
|
|
this.discussion.id,
|
|
|
|
this.discussionsByDiffOrder,
|
|
|
|
);
|
2018-02-27 19:10:43 -05:00
|
|
|
|
2018-07-31 22:21:14 -04:00
|
|
|
this.jumpToDiscussion(nextId);
|
2017-08-03 14:27:33 -04:00
|
|
|
},
|
2018-09-03 11:43:35 -04:00
|
|
|
deleteNoteHandler(note) {
|
2018-09-07 10:20:57 -04:00
|
|
|
this.$emit('noteDeleted', this.discussion, note);
|
2018-09-03 11:43:35 -04:00
|
|
|
},
|
2019-02-18 04:43:13 -05:00
|
|
|
onStartReplying(discussionId) {
|
|
|
|
if (this.discussion.id === discussionId) {
|
|
|
|
this.showReplyForm();
|
|
|
|
}
|
|
|
|
},
|
2018-03-16 16:16:21 -04:00
|
|
|
},
|
|
|
|
};
|
2017-06-13 13:01:59 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2018-11-29 08:54:40 -05:00
|
|
|
<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 v-if="shouldRenderDiffs" class="discussion-header note-wrapper">
|
|
|
|
<div v-once class="timeline-icon">
|
|
|
|
<user-avatar-link
|
|
|
|
v-if="author"
|
|
|
|
:link-href="author.path"
|
|
|
|
:img-src="author.avatar_url"
|
|
|
|
:img-alt="author.name"
|
|
|
|
:img-size="40"
|
2018-01-04 19:18:35 -05:00
|
|
|
/>
|
2017-06-13 13:01:59 -04:00
|
|
|
</div>
|
2019-02-07 08:32:16 -05:00
|
|
|
<div class="timeline-content">
|
|
|
|
<note-header
|
|
|
|
:author="author"
|
2019-02-26 07:39:59 -05:00
|
|
|
:created-at="firstNote.created_at"
|
|
|
|
:note-id="firstNote.id"
|
2019-02-07 08:32:16 -05:00
|
|
|
:include-toggle="true"
|
|
|
|
:expanded="discussion.expanded"
|
|
|
|
@toggleHandler="toggleDiscussionHandler"
|
|
|
|
>
|
|
|
|
<span v-html="actionText"></span>
|
|
|
|
</note-header>
|
|
|
|
<note-edited-text
|
|
|
|
v-if="discussion.resolved"
|
|
|
|
:edited-at="discussion.resolved_at"
|
|
|
|
:edited-by="discussion.resolved_by"
|
|
|
|
:action-text="resolvedText"
|
|
|
|
class-name="discussion-headline-light js-discussion-headline"
|
|
|
|
/>
|
|
|
|
<note-edited-text
|
|
|
|
v-else-if="lastUpdatedAt"
|
|
|
|
:edited-at="lastUpdatedAt"
|
|
|
|
:edited-by="lastUpdatedBy"
|
|
|
|
action-text="Last updated"
|
|
|
|
class-name="discussion-headline-light js-discussion-headline"
|
|
|
|
/>
|
|
|
|
</div>
|
2018-11-29 08:54:40 -05:00
|
|
|
</div>
|
2019-03-22 10:33:01 -04:00
|
|
|
<div v-if="!shouldHideDiscussionBody" class="discussion-body">
|
2018-11-29 08:54:40 -05:00
|
|
|
<component
|
|
|
|
:is="wrapperComponent"
|
|
|
|
v-bind="wrapperComponentProps"
|
|
|
|
class="card discussion-wrapper"
|
|
|
|
>
|
2019-05-01 06:04:07 -04:00
|
|
|
<discussion-notes
|
|
|
|
:discussion="discussion"
|
|
|
|
:diff-line="diffLine"
|
|
|
|
:help-page-path="helpPagePath"
|
|
|
|
:is-expanded="isExpanded"
|
|
|
|
:line="line"
|
|
|
|
:should-group-replies="shouldGroupReplies"
|
|
|
|
@startReplying="showReplyForm"
|
|
|
|
@toggleDiscussion="toggleDiscussionHandler"
|
|
|
|
@deleteNote="deleteNoteHandler"
|
|
|
|
>
|
|
|
|
<slot slot="avatar-badge" name="avatar-badge"></slot>
|
|
|
|
<template #footer="{ showReplies }">
|
|
|
|
<draft-note
|
|
|
|
v-if="showDraft(discussion.reply_id)"
|
|
|
|
:key="`draft_${discussion.id}`"
|
|
|
|
:draft="draftForDiscussion(discussion.reply_id)"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
v-else-if="showReplies"
|
|
|
|
:class="{ 'is-replying': isReplying }"
|
|
|
|
class="discussion-reply-holder"
|
|
|
|
>
|
|
|
|
<discussion-actions
|
|
|
|
v-if="!isReplying && userCanReply"
|
|
|
|
:discussion="discussion"
|
|
|
|
:is-resolving="isResolving"
|
|
|
|
:resolve-button-title="resolveButtonTitle"
|
|
|
|
:resolve-with-issue-path="resolveWithIssuePath"
|
|
|
|
:should-show-jump-to-next-discussion="shouldShowJumpToNextDiscussion"
|
|
|
|
@showReplyForm="showReplyForm"
|
|
|
|
@resolve="resolveHandler"
|
|
|
|
@jumpToNextDiscussion="jumpToNextDiscussion"
|
2018-11-29 08:54:40 -05:00
|
|
|
/>
|
2019-05-01 06:04:07 -04:00
|
|
|
<note-form
|
|
|
|
v-if="isReplying"
|
|
|
|
ref="noteForm"
|
|
|
|
:discussion="discussion"
|
|
|
|
:is-editing="false"
|
2018-12-13 14:17:19 -05:00
|
|
|
:line="diffLine"
|
2019-05-01 06:04:07 -04:00
|
|
|
save-button-title="Comment"
|
|
|
|
:autosave-key="autosaveKey"
|
|
|
|
@handleFormUpdateAddToReview="addReplyToReview"
|
|
|
|
@handleFormUpdate="saveReply"
|
|
|
|
@cancelForm="cancelReplyForm"
|
|
|
|
/>
|
|
|
|
<note-signed-out-widget v-if="!userCanReply" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</discussion-notes>
|
2018-11-29 08:54:40 -05:00
|
|
|
</component>
|
2017-06-13 13:01:59 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-29 08:54:40 -05:00
|
|
|
</timeline-entry-item>
|
2017-06-13 13:01:59 -04:00
|
|
|
</template>
|