From 2708217233ba94de5ba38910fbbbf1c0d68c541e Mon Sep 17 00:00:00 2001 From: mvdegtyar Date: Thu, 4 Aug 2022 12:39:10 +0300 Subject: [PATCH] Add Change button to filter tooltip --- frontend/components/FindAppropriateSchool.vue | 3 +- frontend/components/Map.vue | 45 ++++++++++++++++--- frontend/locales/cz.json | 3 +- frontend/locales/ua.json | 3 +- frontend/pages/index.vue | 19 ++++---- frontend/store/map.js | 15 +++---- 6 files changed, 62 insertions(+), 26 deletions(-) diff --git a/frontend/components/FindAppropriateSchool.vue b/frontend/components/FindAppropriateSchool.vue index 526ad7a..bb1744f 100644 --- a/frontend/components/FindAppropriateSchool.vue +++ b/frontend/components/FindAppropriateSchool.vue @@ -124,11 +124,12 @@ export default { ...mapMutations({ mapSetAge: 'map/setAge', mapSetAppropriateSchool: 'map/setAppropriateSchool', + mapSetActiveTab: 'map/setActiveTab', }), showSchool() { this.mapSetAge(this.studentAge); this.mapSetAppropriateSchool(this.appropriateSchool); - this.$store.dispatch('map/show'); + this.mapSetActiveTab(1); }, }, }; diff --git a/frontend/components/Map.vue b/frontend/components/Map.vue index 88ed909..ce0ce86 100644 --- a/frontend/components/Map.vue +++ b/frontend/components/Map.vue @@ -12,17 +12,23 @@ {{ $t('components.Map.filter_tooltip') }} - +
{{ appropriateSchool }} - + + +
- +