From d4d0bbe94d6068794b9aaf8f368ab7a5fc20a1d4 Mon Sep 17 00:00:00 2001 From: cbeauchesne Date: Wed, 24 Mar 2021 11:28:38 +0100 Subject: [PATCH] Add query items --- src/views/documents/utils/QueryItems.vue | 2 +- src/views/portals/OutingsStatsView.vue | 33 ++++++++++++++++++++---- src/views/portals/utils/outings-stats.js | 5 +++- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/views/documents/utils/QueryItems.vue b/src/views/documents/utils/QueryItems.vue index 167a00745e..ca7193e514 100644 --- a/src/views/documents/utils/QueryItems.vue +++ b/src/views/documents/utils/QueryItems.vue @@ -218,7 +218,7 @@ export default { }, documentType() { - return this.$route.name.slice(0, -1); + return this.$route.name.split('-')[0].slice(0, -1); }, associations() { diff --git a/src/views/portals/OutingsStatsView.vue b/src/views/portals/OutingsStatsView.vue index 6d5b3d0070..eeaaaa2344 100644 --- a/src/views/portals/OutingsStatsView.vue +++ b/src/views/portals/OutingsStatsView.vue @@ -1,16 +1,20 @@