← All changes
|
resources/js/components/availability/AvailabilityCalendar.tsx
+7
-0
3.0.13
→
3.0.16
View file →
| @@ -42,8 +42,10 @@ | ||
| 42 | 42 | total_seats: number; |
| 43 | 43 | booked_seats: number; |
| 44 | 44 | available_seats: number; |
| 45 | 45 | waitlist_count: number; |
| 46 | + /** True for read-only dates generated by a recurring rule */ | |
| 47 | + is_virtual?: boolean; | |
| 46 | 48 | status: |
| 47 | 49 | | "available" |
| 48 | 50 | | "sold_out" |
| 49 | 51 | | "limited" |
| @@ -358,8 +360,13 @@ | ||
| 358 | 360 | : ""} |
| 359 | 361 | </div> |
| 360 | 362 | )} |
| 361 | 363 | |
| 364 | + {availability.is_virtual && ( | |
| 365 | + <div className="mb-2 inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium bg-indigo-50 text-indigo-700 dark:bg-indigo-900/30 dark:text-indigo-300"> | |
| 366 | + {__("From rule", "yatra")} | |
| 367 | + </div> | |
| 368 | + )} | |
| 362 | 369 | <div className="grid grid-cols-2 gap-3 text-xs"> |
| 363 | 370 | <div> |
| 364 | 371 | <div className="text-gray-500 dark:text-gray-400 mb-1"> |
| 365 | 372 | {__("Capacity", "yatra")} |