Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Röhrl <jakob.roehrl@web.de>2020-09-28 15:54:27 +0300
committerMarcel Klehr <mklehr@gmx.net>2022-11-03 17:09:35 +0300
commit8fc4238bd974b6b12972ce37ff9455feac175592 (patch)
tree2622424e97f5ce48eee55fe5d9c8c3806c2c8a25
parentd5dfd2c80ca5ea409b418396cc5db96bb3e87b80 (diff)
try to do it in App.vue
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
-rw-r--r--src/App.vue7
-rw-r--r--src/components/card/CardSidebar.vue1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue
index ec1d06d8..862dc9d3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -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>
diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue
index ab6d9a88..f08bd147 100644
--- a/src/components/card/CardSidebar.vue
+++ b/src/components/card/CardSidebar.vue
@@ -22,7 +22,6 @@
<template>
<NcAppSidebar v-if="currentBoard && currentCard"
- v-click-outside="closeSidebar"
:active="tabId"
:title="title"
:subtitle="subtitle"