Forráskód Böngészése

Merge branch 'master' of http://gitlab.jaquin.fr/clovis/bdlg-planner-front

tripeur 4 éve
szülő
commit
63ad6dc2cc
2 módosított fájl, 4 hozzáadás és 1 törlés
  1. 3 0
      src/PlannerApp.vue
  2. 1 1
      src/models/SolverInput.ts

+ 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() + "\t" + slot.benevoleIdList.length + "/" + slot.maxAttendee;
+                  }
                   const benevole = this.$store.getters.getBenevoleById(parseObj.volonteerId);
                   return `Bénevole :\t${benevole?.shortame}<br>${slot?.toString()}`;
                 }

+ 1 - 1
src/models/SolverInput.ts

@@ -44,7 +44,7 @@ export type SolverOutput = {
   explanation: string;
 };
 export type JustificationObject = {
-  type: "Assignement" | "MealAssignement";
+  type: "Assignement" | "MealAssignement" | "MealSlot";
   slotId: string;
   volonteerId: number;
 };