From 4924e4edb22ece1b5e246fca9f4ae686e6e0e8d3 Mon Sep 17 00:00:00 2001
From: Phil Hughes <me@iamphill.com>
Date: Fri, 20 Apr 2018 09:09:19 +0100
Subject: Added review mode to new IDE sidebar

#44846
---
 app/assets/javascripts/ide/components/ide_tree.vue | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'app/assets/javascripts/ide/components/ide_tree.vue')

diff --git a/app/assets/javascripts/ide/components/ide_tree.vue b/app/assets/javascripts/ide/components/ide_tree.vue
index ed83bf4109b..4f33bc81838 100644
--- a/app/assets/javascripts/ide/components/ide_tree.vue
+++ b/app/assets/javascripts/ide/components/ide_tree.vue
@@ -1,5 +1,5 @@
 <script>
-import { mapGetters, mapState } from 'vuex';
+import { mapActions, mapGetters, mapState } from 'vuex';
 import Icon from '~/vue_shared/components/icon.vue';
 import SkeletonLoadingContainer from '~/vue_shared/components/skeleton_loading_container.vue';
 import RepoFile from './repo_file.vue';
@@ -16,6 +16,12 @@ export default {
     ...mapState(['currentBranchId']),
     ...mapGetters(['currentProject', 'currentTree']),
   },
+  mounted() {
+    this.updateViewer('editor');
+  },
+  methods: {
+    ...mapActions(['updateViewer']),
+  },
 };
 </script>
 
-- 
cgit v1.2.1

