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

View File

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