Explorar o código

Improve mealslot over booking messaging

clovis %!s(int64=4) %!d(string=hai) anos
pai
achega
0895598971
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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()}`;
                 }