diff --git a/src/app/backlog-table/backlog.component.html b/src/app/backlog-table/backlog.component.html index 75d1fea..091a1a3 100644 --- a/src/app/backlog-table/backlog.component.html +++ b/src/app/backlog-table/backlog.component.html @@ -11,7 +11,7 @@

Backlog

-
+

{{story.title}}

diff --git a/src/app/backlog-table/backlog.component.ts b/src/app/backlog-table/backlog.component.ts index 8c21895..19b1e3d 100644 --- a/src/app/backlog-table/backlog.component.ts +++ b/src/app/backlog-table/backlog.component.ts @@ -30,6 +30,7 @@ export class BacklogComponent extends TableComponentBase< public categories: ScrumCategory[] = []; public currentSprint: ScrumSprint; + public backlog: ScrumUserstory[] = []; public choosen: ScrumUserstory[] = []; constructor( @@ -44,6 +45,7 @@ export class BacklogComponent extends TableComponentBase< alert('Fehler'); } else { this.items.push(...response.body); + this.backlog = this.items; } }); backendService.getTasks().subscribe((response) => { @@ -144,12 +146,15 @@ export class BacklogComponent extends TableComponentBase< public addToSprintBacklog(userstory: ScrumUserstory) { this.choosen.push(userstory); + const index = this.backlog.indexOf(userstory); + this.backlog.splice(index, 1); } public deleteFromSprintBacklog(userstory: ScrumUserstory){ const index = this.choosen.indexOf(userstory); this.choosen.splice(index, 1); + this.backlog.push(userstory); } public getCurrentSprint()