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

On process

Aleix Suau800060a486a8
diff --git a/frontend/angular.json b/frontend/angular.json
index e396fe8f672..f1b21f8dddb 100644
--- a/frontend/angular.json
+++ b/frontend/angular.json
@@ -1,4 +1,4 @@
- {
+{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
@@ -145,5 +145,8 @@
"@schematics/angular:directive": {
"prefix": "app"
}
+ },
+ "cli": {
+ "analytics": false
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
index 2dcc8ea280f..7b6d614fc31 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
// ++
-import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnInit} from "@angular/core";
+import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnInit, AfterContentChecked, ViewChildren, QueryList} from "@angular/core";
import {take} from "rxjs/operators";
import {CausedUpdatesService} from "core-app/modules/boards/board/caused-updates/caused-updates.service";
import {DragAndDropService} from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
@@ -44,6 +44,7 @@ import {CurrentProjectService} from "core-components/projects/current-project.se
import {WorkPackageViewFiltersService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
import {QueryResource} from "core-app/modules/hal/resources/query-resource";
+import { WorkPackageSingleCardComponent } from "core-components/wp-card-view/wp-single-card/wp-single-card.component";
@Component({
selector: 'wp-list-view',
@@ -57,7 +58,7 @@ import {QueryResource} from "core-app/modules/hal/resources/query-resource";
CausedUpdatesService
]
})
-export class WorkPackageListViewComponent extends UntilDestroyedMixin implements OnInit {
+export class WorkPackageListViewComponent extends UntilDestroyedMixin implements OnInit, AfterContentChecked {
text = {
'jump_to_pagination': this.I18n.t('js.work_packages.jump_marks.pagination'),
@@ -79,6 +80,9 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements
dragAndDropEnabled: true
};
+ @ViewChildren(WorkPackageSingleCardComponent)
+ cards:QueryList<WorkPackageSingleCardComponent[]>;
+
constructor(readonly I18n:I18nService,
readonly injector:Injector,
readonly querySpace:IsolatedQuerySpace,
@@ -103,6 +107,13 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements
});
}
+ ngAfterContentChecked() {
+ setTimeout(() => {
+ console.log('cards 0: ', document.querySelectorAll('.wp-card'));
+ // this.cards.changes.subscribe(cards => console.log('CARDSSSS: ', this.cards));
+ }, 0)
+ }
+
protected setupInformationLoadedListener() {
this
.querySpace
diff --git a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts
index baba63f1e57..3f6a3a90aa8 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts
@@ -114,6 +114,12 @@ export class WorkPackageSplitViewComponent extends WorkPackageSingleViewBase imp
}
public backToList() {
+ setTimeout(() => {
+ console.log('.-checked: ', document.querySelector('.-checked'));
+ document.querySelector('.-checked').scrollIntoView({block: "start", behavior: "smooth"});
+ }, 0);
+
+
this.backRouting.goToBaseState();
}