feat: Implement event dashboard with activation, cancellation, editing, and booking management functionalities.
This commit is contained in:
@@ -43,9 +43,9 @@ export class SingleEventDashboardEventActivation {
|
||||
if (eventException) {
|
||||
payload = {
|
||||
...eventException,
|
||||
originalStartTime: new Date(eventException.originalStartTime),
|
||||
originalStartTime: new Date(eventException.originalStartTime),
|
||||
newStartTime: eventException.newStartTime ? new Date(eventException.newStartTime) : undefined,
|
||||
newEndTime: eventException.newEndTime ? new Date(eventException.newEndTime) :undefined,
|
||||
newEndTime: eventException.newEndTime ? new Date(eventException.newEndTime) : undefined,
|
||||
isCancelled: !activated,
|
||||
};
|
||||
} else {
|
||||
@@ -55,7 +55,7 @@ export class SingleEventDashboardEventActivation {
|
||||
};
|
||||
}
|
||||
|
||||
this.calendarService.applyException(eventId, payload ).subscribe(
|
||||
this.calendarService.applyException(eventId, payload).subscribe(
|
||||
{
|
||||
next: () => {
|
||||
this.eventBus.emit(EventType.CALENDAR_VIEW_EVENT_SAVED, 'Event saved')
|
||||
@@ -77,7 +77,7 @@ export class SingleEventDashboardEventActivation {
|
||||
}
|
||||
|
||||
protected closeDialog() {
|
||||
this.eventBus.emit(EventType.CALENDAR_VIEW_DIALOG_CLOSED, 'Event saved')
|
||||
this.eventBus.emit(EventType.CALENDAR_VIEW_EVENT_DASHBOARD, 'Event saved')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user