Przeglądaj źródła

Fix booked class binding: drop .value in template

ZiB 4 miesięcy temu
rodzic
commit
ea170d3c8e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      room_cal/vue/calendar.html

+ 1 - 1
room_cal/vue/calendar.html

@@ -744,7 +744,7 @@
             :class="{
               outside:  !inMonth(day),
               today:    isToday(day),
-              booked:   inMonth(day) && !!reservations.value[fmtDate(day)],
+              booked:   inMonth(day) && !!reservations[fmtDate(day)],
               closed:   inMonth(day) && isClosed(day),
               selected: bulkEnabled ? bulkDays.has(fmtDate(day)) : (selection?.type === 'day' && selection.key === fmtDate(day)),
             }"