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
On process
Aleix Suau7be9aa3fd577
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.tsindex c8a99ffb3f3..592236c1ec0 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.seimport {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'),@@ -82,6 +83,9 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implementsdragAndDropEnabled: true};+ @ViewChildren(WorkPackageSingleCardComponent)+ cards:QueryList<WorkPackageSingleCardComponent[]>;+constructor(readonly I18n:I18nService,readonly injector:Injector,readonly querySpace:IsolatedQuerySpace,@@ -107,6 +111,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.querySpacediff --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.tsindex 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();}