diff --git a/src/App.vue b/src/App.vue index c5237165f..ef57ed590 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,14 @@
- + + + + + + @@ -34,6 +41,7 @@ import { mapState } from 'vuex' import AppNavigation from './components/navigation/AppNavigation' +import { Modal } from '@nextcloud/vue' import { BoardApi } from './services/BoardApi' const boardApi = new BoardApi() @@ -42,6 +50,7 @@ export default { name: 'App', components: { AppNavigation, + Modal, }, data() { return { @@ -67,6 +76,7 @@ export default { navShown: state => state.navShown, sidebarShownState: state => state.sidebarShown, currentBoard: state => state.currentBoard, + cardDetailsInModal: state => state.cardDetailsInModal, }), // TODO: properly handle sidebar showing for route subview and board sidebar sidebarRouterView() { @@ -77,17 +87,21 @@ export default { return this.sidebarRouterView || this.sidebarShownState }, }, + created() { + this.$store.dispatch('loadBoards') + this.$store.dispatch('loadSharees') + }, + methods: { + hideModal() { + this.$router.push({ name: 'board' }) + }, + }, provide() { return { boardApi, } }, - created() { - this.$store.dispatch('loadBoards') - this.$store.dispatch('loadSharees') - }, } - - diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 575c13b06..459f91798 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -27,7 +27,16 @@ :title-editable.sync="titleEditable" @update:title="updateTitle" @close="closeSidebar"> -