try to do it in App.vue

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-09-28 14:54:27 +02:00
committed by Marcel Klehr
parent d5dfd2c80c
commit 8fc4238bd9
2 changed files with 6 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<template> <template>
<NcContent app-name="deck" :class="{ 'nav-hidden': !navShown, 'sidebar-hidden': !sidebarRouterView }"> <NcContent app-name="deck" :class="{ 'nav-hidden': !navShown, 'sidebar-hidden': !sidebarRouterView }">
<AppNavigation /> <AppNavigation />
<NcAppContent> <NcAppContent @click="clickCloseSidebar()">
<router-view /> <router-view />
</NcAppContent> </NcAppContent>
@@ -122,6 +122,11 @@ export default {
hideModal() { hideModal() {
this.$router.push({ name: 'board' }) this.$router.push({ name: 'board' })
}, },
clickCloseSidebar() {
if (this.sidebarShown) {
this.$router.push({ name: 'board' })
}
},
}, },
} }
</script> </script>

View File

@@ -22,7 +22,6 @@
<template> <template>
<NcAppSidebar v-if="currentBoard && currentCard" <NcAppSidebar v-if="currentBoard && currentCard"
v-click-outside="closeSidebar"
:active="tabId" :active="tabId"
:title="title" :title="title"
:subtitle="subtitle" :subtitle="subtitle"