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

Allow queries to be saved within the gantt module

Henriette Darge7f30ae62251d
diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-query-view.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-query-view.service.ts
index 98486d45643..535df0d2038 100644
--- a/frontend/src/app/features/work-packages/components/wp-list/wp-query-view.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-query-view.service.ts
@@ -45,6 +45,9 @@ export class WorkPackagesQueryViewService {
if (this.$state.includes('calendar')) {
return 'work_packages_calendar';
}
+ if (this.$state.includes('gantt')) {
+ return 'gantt';
+ }
throw new Error('Not on a path defined for query views');
}
diff --git a/modules/gantt/app/views/gantt/gantt/_menu.html.erb b/modules/gantt/app/views/gantt/gantt/_menu.html.erb
index 201d91c0b84..7346511d268 100644
--- a/modules/gantt/app/views/gantt/gantt/_menu.html.erb
+++ b/modules/gantt/app/views/gantt/gantt/_menu.html.erb
@@ -4,7 +4,7 @@
inputs: {
projectId: (@project ? @project.id.to_s : ''),
menuItems: [parent_name, name],
- baseRoute: 'work-packages',
+ baseRoute: 'gantt',
viewType: 'Gantt',
},
class: 'op-sidebar--body'