Sfoglia il codice sorgente

Improve mealslot over booking messaging

clovis 4 anni fa
parent
commit
0895598971
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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()}`;
                 }