diff --git a/components/forms/AscentFiltersToggleBtn.vue b/components/forms/AscentFiltersToggleBtn.vue new file mode 100644 index 00000000..8942e81e --- /dev/null +++ b/components/forms/AscentFiltersToggleBtn.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/components/logBooks/outdoors/LogBookList.vue b/components/logBooks/outdoors/LogBookList.vue index 15b016ef..3a18d7a5 100644 --- a/components/logBooks/outdoors/LogBookList.vue +++ b/components/logBooks/outdoors/LogBookList.vue @@ -82,6 +82,10 @@ export default { user: { type: Object, default: null + }, + outdoorAnalytikFilters: { + type: Array, + default: () => [] } }, @@ -121,6 +125,13 @@ export default { } }, + outdoorAnalytikFilters () { + if (!this.firstLoading) { + this.resetAscents() + this.ascendedCragRoutes() + } + }, + climbingType () { if (!this.firstLoading) { this.resetAscents() @@ -153,7 +164,8 @@ export default { promise = new LogBookOutdoorApi(this.$axios, this.$auth).ascendedCragRoutes( this.order, this.climbingType, - this.page + this.page, + this.outdoorAnalytikFilters ) } diff --git a/lang/en-US.js b/lang/en-US.js index 7f19582a..e6cd552d 100644 --- a/lang/en-US.js +++ b/lang/en-US.js @@ -2190,7 +2190,9 @@ export default { comment: 'My comment', private_comment: 'Comment is private', released_at: 'Released at', - hardness_status: 'Difficulty appreciation' + hardness_status: 'Difficulty appreciation', + only_lead_climbs: 'Only Lead Climbs', + only_on_sight: 'Only on sight' }, ascentGymRoute: { type: 'Type', diff --git a/lang/fr-FR.js b/lang/fr-FR.js index aa31482d..4d8a8571 100644 --- a/lang/fr-FR.js +++ b/lang/fr-FR.js @@ -2190,7 +2190,9 @@ export default { comment: 'Mon commentaire', private_comment: 'Commentaire privé', released_at: 'Réalisé le', - hardness_status: 'Appréciation de la difficulté' + hardness_status: 'Appréciation de la difficulté', + only_lead_climbs: 'Sans moulinettes', + only_on_sight: 'A vue' }, ascentGymRoute: { type: 'Type', diff --git a/pages/home/ascents/outdoor/analytiks.vue b/pages/home/ascents/outdoor/analytiks.vue index 2cd1b3e8..5cddc17f 100644 --- a/pages/home/ascents/outdoor/analytiks.vue +++ b/pages/home/ascents/outdoor/analytiks.vue @@ -1,5 +1,6 @@