Selaa lähdekoodia

Improve mealslot over booking messaging

clovis 4 vuotta sitten
vanhempi
commit
0895598971
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/PlannerApp.vue

+ 3 - 0
src/PlannerApp.vue

@@ -416,6 +416,9 @@ export default defineComponent({
                 } else {
                   const parseObj = o as JustificationObject;
                   const slot = this.$store.getters.getCreneauById(parseObj.slotId);
+                  if (o.type == "MealSlot" & slot ){
+                    return slot.toString() + slot.benevoleIdList.length + "/" + slot.maxAttendee;
+                  }
                   const benevole = this.$store.getters.getBenevoleById(parseObj.volonteerId);
                   return `Bénevole :\t${benevole?.shortame}<br>${slot?.toString()}`;
                 }