debian-mirror-gitlab/app/assets/javascripts/repository/pages/index.vue
2021-03-11 19:13:27 +05:30

25 lines
466 B
Vue

<script>
import { updateElementsVisibility } from '../utils/dom';
import TreePage from './tree.vue';
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>