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
Use DatasetInputs on embedded table entry
Oliver Güntherbf15fcd8b6a5
diff --git a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.tsindex ebecc1651d9..914ba4fc4d6 100644--- a/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.ts@@ -1,9 +1,11 @@import {- Component, ElementRef, Input, OnInit,+ Component, ElementRef, Input,} from '@angular/core';+import { DatasetInputs } from 'core-app/shared/components/dataset-inputs.decorator';export const wpTableEntrySelector = 'wp-embedded-table-entry';+@DatasetInputs@Component({selector: wpTableEntrySelector,template: `@@ -15,26 +17,13 @@ export const wpTableEntrySelector = 'wp-embedded-table-entry';</ng-container>`,})-export class WorkPackageEmbeddedTableEntryComponent implements OnInit {- @Input() public queryProps:any;+export class WorkPackageEmbeddedTableEntryComponent {+ @Input() public queryProps:unknown;- @Input() public configuration:any;+ @Input() public configuration:unknown;@Input() public initialLoadingIndicator = true;constructor(readonly elementRef:ElementRef) {}-- ngOnInit() {- const element = this.elementRef.nativeElement;-- if (element.getAttribute('query-props')) {- this.getInputsFromData(element);- }- }-- private getInputsFromData(element:HTMLElement) {- this.queryProps = JSON.parse(element.getAttribute('query-props')!);- this.configuration = JSON.parse(element.getAttribute('configuration')!);- }}