2021-11-11 11:23:49 +05:30
|
|
|
<script>
|
2022-07-23 23:45:48 +05:30
|
|
|
import { mapGetters } from 'vuex';
|
|
|
|
import { refreshCurrentPage } from '~/lib/utils/url_utility';
|
2021-11-11 11:23:49 +05:30
|
|
|
import BoardContent from '~/boards/components/board_content.vue';
|
|
|
|
import BoardSettingsSidebar from '~/boards/components/board_settings_sidebar.vue';
|
2022-06-21 17:19:12 +05:30
|
|
|
import BoardTopBar from '~/boards/components/board_top_bar.vue';
|
2021-11-11 11:23:49 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
BoardContent,
|
|
|
|
BoardSettingsSidebar,
|
2022-06-21 17:19:12 +05:30
|
|
|
BoardTopBar,
|
2021-11-11 11:23:49 +05:30
|
|
|
},
|
2023-03-17 16:20:25 +05:30
|
|
|
inject: ['fullBoardId'],
|
2021-11-11 11:23:49 +05:30
|
|
|
computed: {
|
|
|
|
...mapGetters(['isSidebarOpen']),
|
|
|
|
},
|
2022-07-23 23:45:48 +05:30
|
|
|
created() {
|
|
|
|
window.addEventListener('popstate', refreshCurrentPage);
|
2021-11-11 11:23:49 +05:30
|
|
|
},
|
2022-07-23 23:45:48 +05:30
|
|
|
destroyed() {
|
|
|
|
window.removeEventListener('popstate', refreshCurrentPage);
|
2021-11-11 11:23:49 +05:30
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="boards-app gl-relative" :class="{ 'is-compact': isSidebarOpen }">
|
2022-06-21 17:19:12 +05:30
|
|
|
<board-top-bar />
|
2023-03-17 16:20:25 +05:30
|
|
|
<board-content :board-id="fullBoardId" />
|
2021-11-11 11:23:49 +05:30
|
|
|
<board-settings-sidebar />
|
|
|
|
</div>
|
|
|
|
</template>
|