Skip to content

Commit aa3b8fc

Browse files
committed
chore(workplace): fix default titles for desk and visitor bookings (PPT-2468)
1 parent a36bfe3 commit aa3b8fc

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export class DeskFlowNewComponent extends AsyncHandler implements OnInit {
152152
this._booking_form.form.patchValue({ booking_type: 'desk' });
153153
this._booking_form.setOptions({ type: 'desk' });
154154
}
155+
if (!this._booking_form.form.value.id)
156+
this._booking_form.form.patchValue({ title: 'Booking' });
155157
this.subscription(
156158
'route.params',
157159
this._route.paramMap.subscribe((param) => {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ export class VisitorFlowDetailsComponent implements OnInit {
352352
this.active_form.set(is_group ? 'group' : 'single');
353353
this._booking_form.setOptions({ group: is_group });
354354
const zones = this.form.value?.zones || [];
355+
if (!this.form.value.id) this.form.patchValue({ title: 'Visit' });
355356
if (!this.form.value?.user_email) {
356357
this.form.patchValue({ user: currentUser() });
357358
}

0 commit comments

Comments
 (0)