Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Force calendar to redraw once NWD were updated

Oliver Güntherab22eb9b5a0e
diff --git a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
index 1e24c092143..cecf5294ed0 100644
--- a/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
+++ b/frontend/src/app/features/calendar/op-work-packages-calendar.service.ts
@@ -171,10 +171,10 @@ export class OpWorkPackagesCalendarService extends UntilDestroyedMixin {
projectIdentifier:string|undefined,
):Promise<unknown> {
await this.requireNonWorkingDays(fetchInfo.start);
+ await this.requireNonWorkingDays(fetchInfo.end);
if (this.areFiltersEmpty && this.querySpace.query.value) {
// nothing to do
-
return Promise.resolve();
}
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
index 60fb176dc01..edc4755b6c2 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts
@@ -470,7 +470,6 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
void Promise.all([
this.configuration.initialized,
this.weekdayService.loadWeekdays().toPromise(),
- this.workPackagesCalendar.requireNonWorkingDays(new Date()),
])
.then(() => {
this.calendarOptions$.next(
@@ -606,10 +605,11 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,
this.removeExternalEvents();
successCallback(events);
+
+ this.ucCalendar.getApi().render();
},
failureCallback,
);
-
}
public switchView(key:TeamPlannerViewOptionKey):void {