diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-19 16:54:54 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-19 16:54:54 +0100 |
commit | 913c607030a32742fcd6e72cfe0557b329583173 (patch) | |
tree | 60c26f1f97e76aef21a589d67708534d016d1614 /app | |
parent | 949160e382765bab5569c2d1de0f398d0ce72eb5 (diff) | |
download | gitlab-ce-913c607030a32742fcd6e72cfe0557b329583173.tar.gz |
added spec to ide_side_bar
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/ide/components/ide_side_bar.vue | 20 | ||||
-rw-r--r-- | app/assets/javascripts/ide/components/ide_tree.vue | 3 |
2 files changed, 10 insertions, 13 deletions
diff --git a/app/assets/javascripts/ide/components/ide_side_bar.vue b/app/assets/javascripts/ide/components/ide_side_bar.vue index c4bfe6f5ee6..21074e933c0 100644 --- a/app/assets/javascripts/ide/components/ide_side_bar.vue +++ b/app/assets/javascripts/ide/components/ide_side_bar.vue @@ -1,9 +1,9 @@ <script> import { mapState, mapGetters } from 'vuex'; import ProjectAvatarImage from '~/vue_shared/components/project_avatar/image.vue'; -import icon from '~/vue_shared/components/icon.vue'; -import panelResizer from '~/vue_shared/components/panel_resizer.vue'; -import skeletonLoadingContainer from '~/vue_shared/components/skeleton_loading_container.vue'; +import Icon from '~/vue_shared/components/icon.vue'; +import PanelResizer from '~/vue_shared/components/panel_resizer.vue'; +import SkeletonLoadingContainer from '~/vue_shared/components/skeleton_loading_container.vue'; import Identicon from '../../vue_shared/components/identicon.vue'; import IdeTree from './ide_tree.vue'; import ResizablePanel from './resizable_panel.vue'; @@ -12,9 +12,9 @@ import CommitSection from './repo_commit_section.vue'; export default { components: { - icon, - panelResizer, - skeletonLoadingContainer, + Icon, + PanelResizer, + SkeletonLoadingContainer, ResizablePanel, ActivityBar, ProjectAvatarImage, @@ -87,11 +87,9 @@ export default { </a> </div> <div class="multi-file-commit-panel-inner-scroll"> - <keep-alive> - <component - :is="activityBarComponent" - /> - </keep-alive> + <component + :is="activityBarComponent" + /> </div> </template> </div> diff --git a/app/assets/javascripts/ide/components/ide_tree.vue b/app/assets/javascripts/ide/components/ide_tree.vue index 705f91ea6aa..ed83bf4109b 100644 --- a/app/assets/javascripts/ide/components/ide_tree.vue +++ b/app/assets/javascripts/ide/components/ide_tree.vue @@ -21,10 +21,9 @@ export default { <template> <div - v-if="currentTree" class="ide-file-list" > - <template v-if="currentTree.loading"> + <template v-if="!currentTree || currentTree.loading"> <div class="multi-file-loading-container" v-for="n in 3" |