get right userstory

This commit is contained in:
Michael 2020-06-30 16:36:47 +02:00
parent e99e0aeb69
commit e74325b558
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
<div class="form-group"> <div class="form-group">
<a class="dropdown-item" href="#" (click)="createTaskStatus()">Neuer Status</a> <a class="dropdown-item" href="#" (click)="createTaskStatus()">Neuer Status</a>
<a class="dropdown-item" href="#" (click)="deleteStatus()">Status löschen</a> <a class="dropdown-item" href="#" (click)="deleteStatus()">Status löschen</a>
<input type="text" class="form-control"/> <input type="text" class="form-control">
</div> </div>
</div> </div>
</div> </div>

View File

@ -64,7 +64,7 @@ export class TaskFormComponent implements OnInit {
} }
getRelatedStory() { getRelatedStory() {
this.backendService.getUserstory(2).subscribe((response) => { this.backendService.getUserstory(this.task.userstoryid).subscribe((response) => {
if (response.status > 399) { if (response.status > 399) {
alert('Fehler'); alert('Fehler');
} else { } else {