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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Redirect to full screen page if the split screen is not supported yet
Henriette Darged8fd40419abe
diff --git a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.tsindex 5b1ac974305..371ab1b9f82 100644--- a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts@@ -155,8 +155,17 @@ export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implementeventResize: (resizeInfo:EventResizeDoneArg) => this.updateEvent(resizeInfo),eventDrop: (dropInfo:EventDropArg) => this.updateEvent(dropInfo),eventClick: (evt:EventClickArg) => {- const workPackage = evt.event.extendedProps.workPackage as WorkPackageResource;- this.calendar.openSplitView(workPackage.id as string);+ const workPackageId = (evt.event.extendedProps.workPackage as WorkPackageResource).id as string;+ // Currently the calendar widget is shown on multiple pages,+ // but only the calendar module itself is a partitioned query space which can deal with a split screen request+ if (this.$state.includes('calendar')) {+ this.calendar.openSplitView(workPackageId);+ } else {+ void this.$state.go(+ 'work-packages.show',+ { workPackageId },+ );+ }},};