11<template >
22 <!-- eslint-disable max-len -->
3- <section class =" mb-4 sm:mb-16 lg:mb-32" >
3+ <section class =" sm:mb-16 lg:mb-32" >
44 <div v-if =" recommendationsBackup.length" v-bind:class =" {
55 'flex': true,
66 'w-full': true,
4848 <div v-if =" recommendations.length" ref =" recommendationCards" class =" grid grid-cols-1 md:grid-cols-2 gap-2" >
4949 <RecommendationCard
5050 v-for =" (recommendation, index) in recommendations" :key =" index"
51+ v-bind:index =" index"
52+ v-bind:showCount =" showCount"
5153 v-bind:recommendation =" recommendation" ></RecommendationCard >
5254 </div >
5355 <div class =" text-center md:text-left px-4 md:px-0" v-if =" !recommendations.length" >
@@ -65,7 +67,7 @@ import RecommendationCard from '@/components/app/recommendations/RecommendationC
6567import MultipleFiltersDropdown from ' @/components/shared/MultipleFiltersDropdown.vue' ;
6668
6769export default {
68- props: [' title' , ' recommendationsReceived' , ' recommendationsAnalysis' ],
70+ props: [' title' , ' recommendationsReceived' , ' recommendationsAnalysis' , ' showCount ' ],
6971 components: {
7072 Sort,
7173 RecommendationCard,
@@ -110,10 +112,12 @@ export default {
110112 const [name , min , max ] = range;
111113 this .filters [name].min = min;
112114 this .filters [name].max = max;
115+ this .$emit (' reset-show-count' );
113116 },
114117 saveFilterMultiple (... multiple ) {
115118 const [name , filters ] = multiple;
116119 this .filters [name] = filters;
120+ this .$emit (' reset-show-count' );
117121 },
118122 sort (recommendations , by ) {
119123 if (by === ' Closest' ) {
0 commit comments