Skip to content
Snippets Groups Projects
Unverified Commit af87a673 authored by Paul Slaughter's avatar Paul Slaughter
Browse files

WIP update MR to comment on any line

(skip ci)
parent 9da83baf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -81,7 +81,6 @@ export default {
this.showCommentButton &&
this.isHover &&
!this.isMatchLine &&
!this.isContextLine &&
!this.isMetaLine &&
!this.hasDiscussions
);
Loading
Loading
Loading
Loading
@@ -91,7 +91,6 @@ export default {
this.isLoggedIn &&
this.isHover &&
!this.isMatchLine &&
!this.isContextLine &&
!this.isMetaLine,
};
},
Loading
Loading
Loading
Loading
@@ -47,7 +47,6 @@ export default {
classNameMap() {
return {
[this.line.type]: this.line.type,
[CONTEXT_LINE_CLASS_NAME]: this.isContextLine,
[PARALLEL_DIFF_VIEW_TYPE]: this.isParallelView,
};
},
Loading
Loading
Loading
Loading
@@ -48,7 +48,6 @@ export default {
},
classNameMap() {
return {
[CONTEXT_LINE_CLASS_NAME]: this.isContextLine,
[PARALLEL_DIFF_VIEW_TYPE]: true,
};
},
Loading
Loading
Loading
Loading
@@ -65,7 +65,14 @@ export default {
const { highlightedDiffLines, parallelDiffLines } = diffFile;
 
removeMatchLine(diffFile, lineNumbers, bottom);
const lines = addLineReferences(contextLines, lineNumbers, bottom);
const lines = addLineReferences(contextLines, lineNumbers, bottom)
.map(line => ({
...line,
lineCode: line.lineCode || `${fileHash}_${line.oldLine}_${line.newLine}`,
discussions: line.discussions || [],
}));
addContextLines({
inlineLines: highlightedDiffLines,
parallelLines: parallelDiffLines,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment