Now adding works (in UI only)
This commit is contained in:
parent
7ed3c7657e
commit
6adb0c0401
@ -11,7 +11,7 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-6 container-fluid">
|
||||
<h4>Backlog</h4>
|
||||
<div *ngFor="let story of items" class="col-lg-6 container-fluid">
|
||||
<div *ngFor="let story of backlog" class="col-lg-6 container-fluid">
|
||||
<div class="card" style="width: 150%;">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">{{story.title}}</h4>
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user