feat: Implement event dashboard with activation, cancellation, editing, and booking management functionalities.

This commit is contained in:
Schneider Roland
2025-12-31 12:00:05 +01:00
parent 90c192c881
commit 7ed3367ed8
21 changed files with 441 additions and 274 deletions

View File

@@ -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')
}
}