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

make the method more specified for returning the number of relations of a wp

Behrokh Satarnejad8ff12e04a25c
diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
index c6920827ccd..809708a0201 100644
--- a/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
@@ -14,7 +14,8 @@ export function workPackageRelationsCount(
const turboRequests = injector.get(TurboRequestsService);
const wpRelations = injector.get(WorkPackageRelationsService);
const wpId = workPackage.id!.toString();
-
+ // It is an intermediate solution, until the API can return all relations
+ // in the long term, the tabs are going to be the same as in the notifications
const url = pathHelper.workPackageGetRelationsCounterPath(wpId.toString());
const updateTrigger$ = new Subject<void>();