diff options
author | Fatih Acet <acetfatih@gmail.com> | 2018-07-03 23:18:27 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-07-03 23:18:27 +0000 |
commit | 483864db77acb6db479ecdb8ce4dd121731a8330 (patch) | |
tree | 68fad0ba107207a5df667805bbe1af4990b50175 /app/assets/javascripts/diffs/components/diff_content.vue | |
parent | 26998c68c936f183ead1a84e404a61160fc646f7 (diff) | |
download | gitlab-ce-483864db77acb6db479ecdb8ce4dd121731a8330.tar.gz |
Improve performance of toggling diff view type
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_content.vue')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_content.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_content.vue b/app/assets/javascripts/diffs/components/diff_content.vue index 48ba967285f..b6af49c7e2e 100644 --- a/app/assets/javascripts/diffs/components/diff_content.vue +++ b/app/assets/javascripts/diffs/components/diff_content.vue @@ -39,12 +39,12 @@ export default { <div class="diff-viewer"> <template v-if="isTextFile"> <inline-diff-view - v-if="isInlineView" + v-show="isInlineView" :diff-file="diffFile" :diff-lines="diffFile.highlightedDiffLines || []" /> <parallel-diff-view - v-else-if="isParallelView" + v-show="isParallelView" :diff-file="diffFile" :diff-lines="diffFile.parallelDiffLines || []" /> |