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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
927 B
Vue
Raw Normal View History

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-01-13 00:05:48 +05:30
inject: ['disabled', '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-01-13 00:05:48 +05:30
<board-content :disabled="disabled" :board-id="fullBoardId" />
2021-11-11 11:23:49 +05:30
<board-settings-sidebar />
</div>
</template>