Add buttons now are only visible, wehen a sprint is selected

This commit is contained in:
Nicolai Ort 2020-07-10 17:00:27 +02:00
parent ed1d31bdaf
commit 33b24cd746
2 changed files with 8 additions and 8 deletions

View File

@ -46,7 +46,7 @@
<span class="badge badge-primary">Category: {{story.categoryid || "N/A"}}</span>
<span class="badge badge-info">Status: {{story.statusid || "N/A"}}</span>
</div>
<div style="text-align: right;">
<div style="text-align: right;" *ngIf="selectedSprint != undefined">
<button type="button" rel="tooltip" (click)="addToSprintBacklog(story)"
class="btn btn-sm btn-success btn-icon">
<i class="fas fa-plus-square"></i>
@ -68,12 +68,12 @@
<span class="badge badge-primary">Category: {{story.categoryid || "N/A"}}</span>
<span class="badge badge-info">Status: {{story.statusid || "N/A"}}</span>
</div>
<div style="text-align: right;">
<button type="button" rel="tooltip" (click)="deleteFromSprintBacklog(story)"
class="btn btn-danger btn-sm btn-icon">
<i class="fa fa-trash"></i>
</button>
</div>
<div style="text-align: right;">
<button type="button" rel="tooltip" (click)="deleteFromSprintBacklog(story)"
class="btn btn-danger btn-sm btn-icon">
<i class="fa fa-trash"></i>
</button>
</div>
</div>
</div>
</div>

View File

@ -126,7 +126,7 @@ export class BacklogComponent extends TableComponentBase<
}
public deleteFromSprintBacklog(userstory: ScrumUserstory){
userstory.sprintid = null;
userstory.sprintid = undefined;
this.backendService.putUserstory(userstory).subscribe((response) => {
if (response.status > 399) {
alert('Fehler');