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

Remove gitignore changes + Remove scrollIntoView from the cards

Aleix Suau9289082a595a
diff --git a/.gitignore b/.gitignore
index 25d68f412c9..d21efa3c01c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -100,7 +100,3 @@ node_modules/
/package-lock.json
plaintext.yml
structure.sql
-
-.generators
-
-.rakeTasks
diff --git 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
index 4242ebe2cd5..17cd5349e07 100644
--- 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
@@ -5,8 +5,7 @@ import {
EventEmitter,
Input,
OnInit,
- Output,
- ElementRef
+ Output
} from "@angular/core";
import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-resource";
import {checkedClassName, uiStateLinkClass} from "core-components/wp-fast-table/builders/ui-state-link-builder";
@@ -53,19 +52,11 @@ export class WorkPackageSingleCardComponent extends UntilDestroyedMixin implemen
readonly wpTableSelection:WorkPackageViewSelectionService,
readonly wpTableFocus:WorkPackageViewFocusService,
readonly cardView:WorkPackageCardViewService,
- readonly cdRef:ChangeDetectorRef,
- readonly elementRef:ElementRef) {
+ readonly cdRef:ChangeDetectorRef) {
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.live$()
.pipe(