VueJSMigration: Remove parallel-conflict-line component.
It's because Vue says: "Component template should contain exactly one root element".
This commit is contained in:
parent
0eb21fd840
commit
a1fc04dfad
3 changed files with 11 additions and 20 deletions
|
@ -1,15 +0,0 @@
|
|||
/* eslint-disable */
|
||||
((global) => {
|
||||
|
||||
global.mergeConflicts = global.mergeConflicts || {};
|
||||
|
||||
global.mergeConflicts.parallelConflictLine = Vue.extend({
|
||||
props: {
|
||||
file: Object,
|
||||
line: Object
|
||||
},
|
||||
mixins: [global.mergeConflicts.utils, global.mergeConflicts.actions],
|
||||
template: '#parallel-conflict-line'
|
||||
});
|
||||
|
||||
})(window.gl || (window.gl = {}));
|
|
@ -7,10 +7,7 @@
|
|||
props: {
|
||||
file: Object
|
||||
},
|
||||
mixins: [global.mergeConflicts.utils],
|
||||
components: {
|
||||
'parallel-conflict-line': gl.mergeConflicts.parallelConflictLine
|
||||
}
|
||||
mixins: [global.mergeConflicts.utils, global.mergeConflicts.actions]
|
||||
});
|
||||
|
||||
})(window.gl || (window.gl = {}));
|
||||
|
|
|
@ -1,4 +1,13 @@
|
|||
%parallel-conflict-lines{"inline-template" => "true", ":file" => "file"}
|
||||
%table
|
||||
%tr.line_holder.parallel{"v-for" => "section in file.parallelLines"}
|
||||
%td{"is"=>"parallel-conflict-line", "v-for" => "line in section", ":line" => "line", ":file" => "file"}
|
||||
%template{"is"=>"parallel-conflict-line", "v-for" => "line in section", ":line" => "line", ":file" => "file"}
|
||||
%td.diff-line-num.header{":class" => "lineCssClass(line)", "v-if" => "line.isHeader"}
|
||||
%td.line_content.header{":class" => "lineCssClass(line)", "v-if" => "line.isHeader"}
|
||||
%strong {{line.richText}}
|
||||
%button.btn{"@click" => "handleSelected(file, line.id, line.section)"}
|
||||
{{line.buttonTitle}}
|
||||
%td.diff-line-num.old_line{":class" => "lineCssClass(line)", "v-if" => "!line.isHeader"}
|
||||
{{line.lineNumber}}
|
||||
%td.line_content.parallel{":class" => "lineCssClass(line)", "v-if" => "!line.isHeader", "v-html" => "line.richText"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue