Refactored Table input
This commit is contained in:
parent
ac0b901c35
commit
8ecc92df23
@ -108,7 +108,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<app-userstory-inner-table
|
<app-userstory-inner-table
|
||||||
[storys]="selectedSprintUserstories"
|
[items]="selectedSprintUserstories"
|
||||||
></app-userstory-inner-table>
|
></app-userstory-inner-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
public status: ScrumStatus[] = [];
|
public status: ScrumStatus[] = [];
|
||||||
public categories: ScrumCategory[] = [];
|
public categories: ScrumCategory[] = [];
|
||||||
|
|
||||||
@Input() public storys: ScrumUserstory[] = [];
|
@Input() public items: ScrumUserstory[] = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor that establishes the initial backend communication.
|
* Constructor that establishes the initial backend communication.
|
||||||
@ -40,14 +40,14 @@ export class UserstoryInnerTableComponent extends TableComponentBase<
|
|||||||
protected route: ActivatedRoute
|
protected route: ActivatedRoute
|
||||||
) {
|
) {
|
||||||
super(route);
|
super(route);
|
||||||
this.items = this.storys;
|
|
||||||
backendService.getUserstories().subscribe((response) => {
|
backendService.getUserstories().subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
} else {
|
} else {
|
||||||
this.items.push(...response.body);
|
this.items.push(...response.body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
backendService.getTasks().subscribe((response) => {
|
backendService.getTasks().subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h3>Userstories</h3>
|
<h3>Userstories</h3>
|
||||||
<app-userstory-inner-table [storys]="items"></app-userstory-inner-table>
|
<app-userstory-inner-table></app-userstory-inner-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user