diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-02-27 15:51:15 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-02-27 15:51:15 +0300 |
commit | c8d8dffecc73c0553b960310bb6de8ceb9bfffe7 (patch) | |
tree | b55996f47c06c1139d6bbbaf9fecb82b255dc8aa /app/assets/javascripts/vue_shared/components/expand_button.vue | |
parent | 81852d1f902c2923c239e9c33cab77f5fd6ca8d8 (diff) |
Use v-if in the expand button for performance
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/expand_button.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/expand_button.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/expand_button.vue b/app/assets/javascripts/vue_shared/components/expand_button.vue index 3595a9389e9..c943c8d98a4 100644 --- a/app/assets/javascripts/vue_shared/components/expand_button.vue +++ b/app/assets/javascripts/vue_shared/components/expand_button.vue @@ -39,7 +39,7 @@ @click="onClick"> ... </button> - <span v-show="!isCollapsed"> + <span v-if="!isCollapsed"> <slot name="expanded"></slot> </span> </span> |