Explorar o código

Drop minutes from check-in/out select labels

Values stay HH:00 for the backend; display as "2 PM" instead of
"2:00 PM" since minutes are always zero at hourly resolution.
ZiB hai 3 meses
pai
achega
cee903ae01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      room_cal/vue/calendar.html

+ 1 - 1
room_cal/vue/calendar.html

@@ -1397,7 +1397,7 @@ createApp({
     const hourOptions = Array.from({ length: 24 }, (_, h) => {
       const period = h < 12 ? 'AM' : 'PM';
       const h12 = h % 12 === 0 ? 12 : h % 12;
-      return { value: String(h).padStart(2, '0') + ':00', label: `${h12}:00 ${period}` };
+      return { value: String(h).padStart(2, '0') + ':00', label: `${h12} ${period}` };
     });
     const pendingDiscountType = ref(null);
     const pendingClosed       = ref(null);