From 8ecc92df23abab071331845ccb0d0e47d27ffa55 Mon Sep 17 00:00:00 2001 From: Niggl Date: Fri, 10 Jul 2020 23:02:08 +0200 Subject: [PATCH] Refactored Table input --- .../dashboard/dashboard.component.html | 2 +- .../userstory-inner-table.component.ts | 18 +++++++++--------- .../userstory/userstory-table.component.html | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index eb8fa71..f7cc9da 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -108,7 +108,7 @@
diff --git a/src/app/components/tabels/userstory-inner-table/userstory-inner-table.component.ts b/src/app/components/tabels/userstory-inner-table/userstory-inner-table.component.ts index f577876..3309ae1 100644 --- a/src/app/components/tabels/userstory-inner-table/userstory-inner-table.component.ts +++ b/src/app/components/tabels/userstory-inner-table/userstory-inner-table.component.ts @@ -25,7 +25,7 @@ export class UserstoryInnerTableComponent extends TableComponentBase< public status: ScrumStatus[] = []; public categories: ScrumCategory[] = []; - @Input() public storys: ScrumUserstory[] = []; + @Input() public items: ScrumUserstory[] = []; /** * Constructor that establishes the initial backend communication. @@ -40,14 +40,14 @@ export class UserstoryInnerTableComponent extends TableComponentBase< protected route: ActivatedRoute ) { super(route); - this.items = this.storys; - backendService.getUserstories().subscribe((response) => { - if (response.status > 399) { - alert('Fehler'); - } else { - this.items.push(...response.body); - } - }); + + backendService.getUserstories().subscribe((response) => { + if (response.status > 399) { + alert('Fehler'); + } else { + this.items.push(...response.body); + } + }); backendService.getTasks().subscribe((response) => { if (response.status > 399) { alert('Fehler'); diff --git a/src/app/components/tabels/userstory/userstory-table.component.html b/src/app/components/tabels/userstory/userstory-table.component.html index 0b4d5a8..73e0f71 100644 --- a/src/app/components/tabels/userstory/userstory-table.component.html +++ b/src/app/components/tabels/userstory/userstory-table.component.html @@ -1,6 +1,6 @@

Userstories

- +