summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repository/pages/index.vue
blob: 29786bf4ec8e0e1e9af493fd7e04ef29a0ec2b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script>
import TreePage from './tree.vue';
import { updateElementsVisibility } from '../utils/dom';

export default {
  components: {
    TreePage,
  },
  mounted() {
    this.updateProjectElements(true);
  },
  beforeDestroy() {
    this.updateProjectElements(false);
  },
  methods: {
    updateProjectElements(isShow) {
      updateElementsVisibility('.js-show-on-project-root', isShow);
    },
  },
};
</script>

<template>
  <tree-page path="/" />
</template>