+
+ for
+ {{ bookedForLabel(item.booking) }}
+
}
}
@@ -572,6 +584,14 @@ export class ScheduleDayViewComponent extends AsyncHandler implements OnInit {
return bookingLocationString(booking, this._org);
}
+ public backgroundColor(booking: Booking | CalendarEvent) {
+ const color = this.colors[this.type(booking)][0];
+ return this.isBookingForOtherUser(booking) ? `${color}80` : color;
+ }
+
+ public isBookingForOtherUser = isBookingForOtherUser;
+ public bookedForLabel = bookedForLabel;
+
public viewBooking(bkn: CalendarEvent | Booking) {
this._dialog.closeAll();
if (bkn instanceof CalendarEvent) {
diff --git a/apps/workplace/src/app/schedule/schedule-filter-card.component.ts b/apps/workplace/src/app/schedule/schedule-filter-card.component.ts
index 21aee8dc7f..73aedfe66c 100644
--- a/apps/workplace/src/app/schedule/schedule-filter-card.component.ts
+++ b/apps/workplace/src/app/schedule/schedule-filter-card.component.ts
@@ -5,8 +5,8 @@ import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatRippleModule } from '@angular/material/core';
import {
- BOOKING_TYPE_COLORS,
Booking,
+ BOOKING_TYPE_COLORS,
CalendarEvent,
SettingsService,
} from '@placeos/common';
@@ -15,7 +15,10 @@ import {
SettingsToggleComponent,
TranslatePipe,
} from '@placeos/components';
-import { ScheduleStateService } from './schedule-state.service';
+import {
+ isBookingForOtherUser,
+ ScheduleStateService,
+} from './schedule-state.service';
@Component({
selector: 'schedule-filter-card',
@@ -56,6 +59,20 @@ import { ScheduleStateService } from './schedule-state.service';
}
}
+
+
+
+ perm_contact_calendar
+
+
Bookings for Others
+
+ {{ counts()['bookings-for-others'] || 0 }}
+
+
+
+
perm_contact_calendar
+
Bookings for Others
+
+ {{ counts()['bookings-for-others'] || 0 }}
+
+
+
+ }