debian-mirror-gitlab/app/assets/javascripts/repository/pages/index.vue

26 lines
466 B
Vue
Raw Normal View History

2019-09-04 21:01:54 +05:30
<script>
2019-12-26 22:10:19 +05:30
import TreePage from './tree.vue';
import { updateElementsVisibility } from '../utils/dom';
2019-09-04 21:01:54 +05:30
export default {
components: {
2019-12-26 22:10:19 +05:30
TreePage,
2019-09-04 21:01:54 +05:30
},
2019-12-26 22:10:19 +05:30
mounted() {
this.updateProjectElements(true);
},
beforeDestroy() {
this.updateProjectElements(false);
},
methods: {
updateProjectElements(isShow) {
updateElementsVisibility('.js-show-on-project-root', isShow);
},
2019-09-04 21:01:54 +05:30
},
};
</script>
<template>
2019-12-26 22:10:19 +05:30
<tree-page path="/" />
2019-09-04 21:01:54 +05:30
</template>