summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-07-06 17:57:27 +0200
committerTim Zallmann <tzallmann@gitlab.com>2018-07-07 20:54:13 +0200
commit5c6d653be196c21805c94e1e53936c8d3205a433 (patch)
tree66f960911f98b451ab39e749a84122644197d3c0
parent96eb6fd33b5dfc4910d8bd93e697d6b6eb70b991 (diff)
downloadgitlab-ce-5c6d653be196c21805c94e1e53936c8d3205a433.tar.gz
Changed Inline + Parallel Views to v-if instead of v-show
-rw-r--r--app/assets/javascripts/diffs/components/diff_content.vue4
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 b6af49c7e2e..e9f24b7277e 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-show="isInlineView"
+ v-if="isInlineView"
:diff-file="diffFile"
:diff-lines="diffFile.highlightedDiffLines || []"
/>
<parallel-diff-view
- v-show="isParallelView"
+ v-if="isParallelView"
:diff-file="diffFile"
:diff-lines="diffFile.parallelDiffLines || []"
/>