Refactored Table input
This commit is contained in:
parent
ac0b901c35
commit
8ecc92df23
@ -108,7 +108,7 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<app-userstory-inner-table
|
||||
[storys]="selectedSprintUserstories"
|
||||
[items]="selectedSprintUserstories"
|
||||
></app-userstory-inner-table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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');
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="container-fluid">
|
||||
<div class="content">
|
||||
<h3>Userstories</h3>
|
||||
<app-userstory-inner-table [storys]="items"></app-userstory-inner-table>
|
||||
<app-userstory-inner-table></app-userstory-inner-table>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user