2222 </v-col >
2323 </v-row >
2424 <v-row class =" my-0 pa-0" v-else-if =" featureEvendsID.length>0" >
25- <v-col class =" my-0" md =" 3" lg =" 3" sm =" 3" cols =" 6" v-for =" (item,i) in featureEvendsID" :key =" i" >
26- <div v-for =" (itemp, k) in eventsData" :key =" k" class =" pa-0 ma-0" >
27- <div v-if =" itemp.id == item" class =" pa-0 ma-0" >
28- <div
29- style =" cursor : pointer ;border-left :8px solid #5AB55E "
30- class =" pa-2 ma-0 lightModeCard"
31- @click =" goToEventDetails(itemp.id)" >
32- <p class =" google-font ma-0 mt-0" style =" font-size :120% ;" >{{itemp.name | summary(8) }}</p >
33- <p class =" google-font mt-0 mb-0" style =" font-size :90% ;" >{{itemp.date}}</p >
34- <p class =" google-font mt-0 mb-0" style =" font-size :90% ;" >{{itemp.venue.name | summary(15) }}</p >
35- </div >
36- </div >
25+ <v-col class =" my-0" md =" 3" lg =" 3" sm =" 3" cols =" 6" v-for =" (item,i) in featureEvendsData" :key =" i" >
26+ <div
27+ style =" cursor : pointer ;border-left :8px solid #5AB55E "
28+ class =" pa-2 ma-0 lightModeCard"
29+ @click =" goToEventDetails(item.id)" >
30+ <p class =" google-font ma-0 mt-0" style =" font-size :120% ;" >{{item.name | summary(8) }}</p >
31+ <p class =" google-font mt-0 mb-0" style =" font-size :90% ;" >{{item.date}}</p >
32+ <p class =" google-font mt-0 mb-0" style =" font-size :90% ;" >{{item.venue.name | summary(15) }}</p >
3733 </div >
3834 </v-col >
3935
@@ -78,7 +74,8 @@ export default {
7874 showNetworkError: false ,
7975 featureEvendsID: [],
8076 featureEvends: [],
81- eventsData: []
77+ eventsData: [],
78+ featureEvendsData: []
8279
8380 }),
8481 mounted (){
@@ -123,6 +120,7 @@ export default {
123120 this .showNetworkError = false
124121 this .loader = true
125122 this .eventsData = []
123+ this .featureEvendsData = []
126124 firebase .firestore
127125 .collection (" events" )
128126 .get ()
@@ -131,6 +129,14 @@ export default {
131129 this .eventsData .push (doc .data ());
132130 });
133131 this .loader = false
132+
133+ this .featureEvendsID .map (res => {
134+ this .eventsData .map (obj => {
135+ if (obj .id == res){
136+ this .featureEvendsData .push (obj)
137+ }
138+ })
139+ })
134140 })
135141 .catch (err => {
136142 this .loader = false
0 commit comments