Skip to content

Commit cdb1b7a

Browse files
committed
chore(bookings): tweak desk booking group success view
1 parent e14de9f commit cdb1b7a

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

apps/workplace/src/app/book/desk-flow-new/desk-flow-success.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ export class NewDeskFlowSuccessComponent implements OnInit {
313313
this.building.set(this._building_pipe.transform(event.zones));
314314

315315
// Load group bookings if this is a group booking
316-
if (this.is_group) {
317-
await this._loadGroupBookings();
318-
}
316+
setTimeout(async () => {
317+
if (this.is_group) await this._loadGroupBookings();
318+
}, 100);
319319
}
320320

321321
private async _loadGroupBookings() {

apps/workplace/src/app/book/desk-flow-new/desk-flow.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ export class DeskFlowNewComponent extends AsyncHandler implements OnInit {
138138
public readonly is_edit_mode = computed(() => !!this.form_value()?.id);
139139

140140
public ngOnInit() {
141-
localStorage.removeItem('PLACEOS.last_group_booking_ids');
142141
this._booking_form.form.patchValue({ booking_type: 'desk' });
143142
this._booking_form.setOptions({ type: 'desk' });
144143
this.subscription(

apps/workplace/src/app/book/desk-flow/auto-assigned-desk-modal.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ export class AutoAssignedDeskModalComponent
231231
public center = signal({ x: 0.5, y: 0.5 });
232232

233233
public async ngOnInit() {
234-
localStorage.removeItem('PLACEOS.last_group_booking_ids');
235234
await this.initializeAndAutoAssign();
236235
}
237236

libs/bookings/src/lib/booking-form.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ export class BookingFormService extends AsyncHandler {
585585
this.form.getRawValue().booking_type ||
586586
this._options.getValue().type,
587587
});
588+
localStorage.removeItem('PLACEOS.last_group_booking_ids');
588589
const value = this.form.getRawValue();
589590
const booking = this._booking.getValue() || new Booking();
590591
if (!ignore_check) {

0 commit comments

Comments
 (0)