summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diffs/components/diff_table_cell.vue
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2018-07-17 15:47:02 +0000
committerFelipe Artur <felipefac@gmail.com>2018-07-17 19:23:17 -0300
commit07f4b095f8de2a3968705f103701c5075669b2a5 (patch)
treeece80bbc2a475bf3cdb45d6247cd6c29c351bfe7 /app/assets/javascripts/diffs/components/diff_table_cell.vue
parente561f0557657b397302cf9f347845bdf3ae30c75 (diff)
downloadgitlab-ce-07f4b095f8de2a3968705f103701c5075669b2a5.tar.gz
Merge branch '48964-mr-reduce-the-memory-footprint-of-the-component-tree' into 'master'11-1-stable-prepare-rc13
Resolve "MR: Reduce the memory footprint of the component tree" Closes #48964 See merge request gitlab-org/gitlab-ce!20448
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_table_cell.vue')
-rw-r--r--app/assets/javascripts/diffs/components/diff_table_cell.vue12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_table_cell.vue b/app/assets/javascripts/diffs/components/diff_table_cell.vue
index bd02b45a63c..5962f30d9bb 100644
--- a/app/assets/javascripts/diffs/components/diff_table_cell.vue
+++ b/app/assets/javascripts/diffs/components/diff_table_cell.vue
@@ -24,8 +24,12 @@ export default {
type: Object,
required: true,
},
- diffFile: {
- type: Object,
+ fileHash: {
+ type: String,
+ required: true,
+ },
+ contextLinesPath: {
+ type: String,
required: true,
},
diffViewType: {
@@ -120,14 +124,14 @@ export default {
:class="classNameMap"
>
<diff-line-gutter-content
- :file-hash="diffFile.fileHash"
+ :file-hash="fileHash"
+ :context-lines-path="contextLinesPath"
:line-type="normalizedLine.type"
:line-code="normalizedLine.lineCode"
:line-position="linePosition"
:line-number="lineNumber"
:meta-data="normalizedLine.metaData"
:show-comment-button="showCommentButton"
- :context-lines-path="diffFile.contextLinesPath"
:is-bottom="isBottom"
:is-match-line="isMatchLine"
:is-context-line="isContentLine"