Minor changes

pull/8496/head
Aleix Suau 4 years ago
parent 078fd52d83
commit 2271412af9
  1. 4
      frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts
  2. 1
      frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts

@ -60,8 +60,8 @@ export class WorkPackageSingleCardComponent extends UntilDestroyedMixin implemen
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
// click on the 'back button', the last selected card is visible.
// 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"});
}

@ -58,6 +58,7 @@ import {QueryResource} from "core-app/modules/hal/resources/query-resource";
]
})
export class WorkPackageListViewComponent extends UntilDestroyedMixin implements OnInit {
text = {
'jump_to_pagination': this.I18n.t('js.work_packages.jump_marks.pagination'),
'text_jump_to_pagination': this.I18n.t('js.work_packages.jump_marks.label_pagination'),

Loading…
Cancel
Save