From 05da3fbe83fb8dcb755aa27e4a6b15ddd309e3bb Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 17 Jan 2021 22:05:06 +0100 Subject: [PATCH] #167 [pl][nouns] split dictionaries into subpages - show menu on subpages - fixes --- locale/pl/nouns/NounsNav.vue | 20 ++++++++++++++------ locale/pl/nouns/dukatywy.vue | 9 ++------- locale/pl/nouns/neutratywy.vue | 9 ++------- locale/pl/nouns/osobatywy.vue | 9 ++------- routes/inclusive.vue | 9 ++------- routes/nouns.vue | 4 ++-- routes/queerTerms.vue | 9 ++------- 7 files changed, 26 insertions(+), 43 deletions(-) diff --git a/locale/pl/nouns/NounsNav.vue b/locale/pl/nouns/NounsNav.vue index 1c0b3b09..93e78a4a 100644 --- a/locale/pl/nouns/NounsNav.vue +++ b/locale/pl/nouns/NounsNav.vue @@ -1,18 +1,18 @@ @@ -38,5 +38,13 @@ links, }; }, + methods: { + buildRoute(route) { + return `/${this.config.nouns.route}/${route}`; + }, + isActiveRoute(route) { + return decodeURIComponent(this.$route.fullPath) === this.buildRoute(route); + }, + } } diff --git a/locale/pl/nouns/dukatywy.vue b/locale/pl/nouns/dukatywy.vue index 7576a7d2..8ed3f528 100644 --- a/locale/pl/nouns/dukatywy.vue +++ b/locale/pl/nouns/dukatywy.vue @@ -1,16 +1,11 @@