VY
10 было, 1023 RUB стало
Size: a a a
VY
AS
VV
ss
export const GetBookedTimeSlotsForBike = createAction(
'[Booking] Get booked time slots'
);
export const SetBookedTimeSlotsForBike = createAction(
'[Booking] Get booked time slots',
props<{bookedSlots: TimeSlotModel[]}>()
);
getBookedTimeSlotsForBike$ = createEffect(() =>
this.actions$.pipe(
ofType(BookingActions.GetBookedTimeSlotsForBike),
withLatestFrom(this.store.select(selectBookingBikeId)),
switchMap(([action, bikeId]) => this.riderService.getReservedTimeSlotsForBike(bikeId)
.pipe(
map((slots: TimeSlotModel[]) => BookingActions.SetBookedTimeSlotsForBike({bookedSlots: slots})),
catchError(err => this.handleError(err))
)
)
)
);
on(BookingActions.SetBookedTimeSlotsForBike,
(state, {bookedSlots}) => ({...state, bookedSlots})
)
AF
VV
S
AS
VY
VV
IO
AS
S
VY
S
S
S
VY
S