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
Merge branch 'bim/fix/33758-keep-scroll-position-when-back-to-list-from-detail' of https://github.com/opf/openproject into bim/fix/33758-keep-scroll-position-when-back-to-list-from-detail
Aleix Suau0b0c10c37c2a
diff --cc frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.tsindex 17cd5349e07,6da253e3245..4242ebe2cd5--- a/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts+++ b/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts@@@ -50,15 -50,22 +51,23 @@@ export class WorkPackageSingleCardComporeadonly I18n:I18nService,readonly $state:StateService,readonly wpTableSelection:WorkPackageViewSelectionService,+ readonly wpTableFocus:WorkPackageViewFocusService,readonly cardView:WorkPackageCardViewService,- readonly cdRef:ChangeDetectorRef) {+ readonly cdRef:ChangeDetectorRef,+ readonly elementRef:ElementRef) {super();}ngOnInit():void {+ // Scroll into view this card if it represents the selected WorkPackage+ // so when the user clicks a WP from a wp-split-view-entry (list of wp) and then+ // clicks on the 'back button', the last selected card is visible on the list.+ if (this.isSelected(this.workPackage)) {+ this.elementRef.nativeElement.scrollIntoView({block: "start"});+ }+// Update selection state- this.wpTableSelection.selection$()+ this.wpTableSelection.live$().pipe(this.untilDestroyed())