basic booking load behavior
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<tbody>
|
||||
@for (booking of bookings.value()?.data; track booking) {
|
||||
<tr>
|
||||
<td>{{formatDateTime(booking.occurrenceStartTime)}}</td>
|
||||
<td>{{formatDateTime(booking.createdAt)}}</td>
|
||||
<td>{{booking.reservedSeatsCount}}</td>
|
||||
<td><rs-daisy-button [variant]="'error'">
|
||||
Lemondás
|
||||
|
||||
@@ -74,7 +74,10 @@ export class SingleEventBookingList {
|
||||
this.activePage.set($event);
|
||||
}
|
||||
|
||||
formatDateTime( dateStr: string|Date){
|
||||
formatDateTime( dateStr?: string|Date|null){
|
||||
if ( !dateStr ){
|
||||
return "";
|
||||
}
|
||||
return format(new Date(dateStr),'yyyy-MM-dd HH:mm');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user