try to do it in App.vue
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
committed by
Marcel Klehr
parent
d5dfd2c80c
commit
8fc4238bd9
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user