debian-mirror-gitlab/app/assets/javascripts/boards/components/board_app.vue

30 lines
670 B
Vue
Raw Normal View History

2021-11-11 11:23:49 +05:30
<script>
import { mapActions, mapGetters } from 'vuex';
import BoardContent from '~/boards/components/board_content.vue';
import BoardSettingsSidebar from '~/boards/components/board_settings_sidebar.vue';
export default {
components: {
BoardContent,
BoardSettingsSidebar,
},
inject: ['disabled'],
computed: {
...mapGetters(['isSidebarOpen']),
},
mounted() {
this.performSearch();
},
methods: {
...mapActions(['performSearch']),
},
};
</script>
<template>
<div class="boards-app gl-relative" :class="{ 'is-compact': isSidebarOpen }">
<board-content :disabled="disabled" />
<board-settings-sidebar />
</div>
</template>