Now adding works (in UI only)
This commit is contained in:
parent
7ed3c7657e
commit
6adb0c0401
@ -11,7 +11,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6 container-fluid">
|
<div class="col-lg-6 container-fluid">
|
||||||
<h4>Backlog</h4>
|
<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" style="width: 150%;">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title">{{story.title}}</h4>
|
<h4 class="card-title">{{story.title}}</h4>
|
||||||
|
@ -30,6 +30,7 @@ export class BacklogComponent extends TableComponentBase<
|
|||||||
public categories: ScrumCategory[] = [];
|
public categories: ScrumCategory[] = [];
|
||||||
public currentSprint: ScrumSprint;
|
public currentSprint: ScrumSprint;
|
||||||
|
|
||||||
|
public backlog: ScrumUserstory[] = [];
|
||||||
public choosen: ScrumUserstory[] = [];
|
public choosen: ScrumUserstory[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@ -44,6 +45,7 @@ export class BacklogComponent extends TableComponentBase<
|
|||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
} else {
|
} else {
|
||||||
this.items.push(...response.body);
|
this.items.push(...response.body);
|
||||||
|
this.backlog = this.items;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
backendService.getTasks().subscribe((response) => {
|
backendService.getTasks().subscribe((response) => {
|
||||||
@ -144,12 +146,15 @@ export class BacklogComponent extends TableComponentBase<
|
|||||||
|
|
||||||
public addToSprintBacklog(userstory: ScrumUserstory) {
|
public addToSprintBacklog(userstory: ScrumUserstory) {
|
||||||
this.choosen.push(userstory);
|
this.choosen.push(userstory);
|
||||||
|
const index = this.backlog.indexOf(userstory);
|
||||||
|
this.backlog.splice(index, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
public deleteFromSprintBacklog(userstory: ScrumUserstory){
|
public deleteFromSprintBacklog(userstory: ScrumUserstory){
|
||||||
|
|
||||||
const index = this.choosen.indexOf(userstory);
|
const index = this.choosen.indexOf(userstory);
|
||||||
this.choosen.splice(index, 1);
|
this.choosen.splice(index, 1);
|
||||||
|
this.backlog.push(userstory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCurrentSprint()
|
public getCurrentSprint()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user