From f7213b44e7918cfe9c2583ffe4014164c4d12ebe Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 28 Nov 2019 15:34:42 +0100 Subject: [PATCH] Always close the mobile navigation on router link click --- client/src/components/TopNavigation.vue | 10 ++++++++-- .../book-navigation/BookTopicNavigation.vue | 17 ++++++++++------- .../book-navigation/InstrumentNavigation.vue | 17 +++++++++++++++-- 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/client/src/components/TopNavigation.vue b/client/src/components/TopNavigation.vue index 67332120..4501c953 100644 --- a/client/src/components/TopNavigation.vue +++ b/client/src/components/TopNavigation.vue @@ -3,6 +3,7 @@
Inhalte @@ -11,12 +12,14 @@
- Räume + Räume
- Portfolio + Portfolio
@@ -40,6 +43,9 @@ methods: { isActive(linkName) { return linkName === 'book' && this.$route.path.indexOf('module') > -1; + }, + hideMobileNavigation() { + this.$store.dispatch('showMobileNavigation', false); } } } diff --git a/client/src/components/book-navigation/BookTopicNavigation.vue b/client/src/components/book-navigation/BookTopicNavigation.vue index f635094f..83671191 100644 --- a/client/src/components/book-navigation/BookTopicNavigation.vue +++ b/client/src/components/book-navigation/BookTopicNavigation.vue @@ -1,11 +1,12 @@