2016-10-26 08:02:58 +00:00
|
|
|
/* eslint-disable */
|
2016-10-05 12:57:22 +00:00
|
|
|
((global) => {
|
|
|
|
|
|
|
|
global.mergeConflicts = global.mergeConflicts || {};
|
|
|
|
|
|
|
|
global.mergeConflicts.parallelConflictLines = Vue.extend({
|
|
|
|
props: {
|
|
|
|
file: Object
|
|
|
|
},
|
2016-11-09 20:17:49 +00:00
|
|
|
mixins: [global.mergeConflicts.utils, global.mergeConflicts.actions],
|
|
|
|
template: `
|
|
|
|
<table>
|
|
|
|
<tr class="line_holder parallel" v-for="section in file.parallelLines">
|
|
|
|
<template v-for="line in section">
|
|
|
|
<td class="diff-line-num header" :class="lineCssClass(line)" v-if="line.isHeader"></td>
|
|
|
|
<td class="line_content header" :class="lineCssClass(line)" v-if="line.isHeader">
|
|
|
|
<strong>{{line.richText}}</strong>
|
|
|
|
<button class="btn" @click="handleSelected(file, line.id, line.section)">{{line.buttonTitle}}</button>
|
|
|
|
</td>
|
|
|
|
<td class="diff-line-num old_line" :class="lineCssClass(line)" v-if="!line.isHeader">{{line.lineNumber}}</td>
|
|
|
|
<td class="line_content parallel" :class="lineCssClass(line)" v-if="!line.isHeader" v-html="line.richText"></td>
|
|
|
|
</template>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
`,
|
2016-10-05 12:57:22 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
})(window.gl || (window.gl = {}));
|