Show id of newly created items immediately
This commit is contained in:
parent
b718dacc22
commit
bffbe6dffa
@ -46,6 +46,9 @@ export class SprintFormComponent implements OnInit {
|
|||||||
console.log('Sprint gespeichert!');
|
console.log('Sprint gespeichert!');
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
|
} else {
|
||||||
|
// Copy properties returned by the API
|
||||||
|
Object.assign(this.sprint, response.body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,9 @@ export class TaskFormComponent implements OnInit {
|
|||||||
this.backendService.postTask(this.task).subscribe((response) => {
|
this.backendService.postTask(this.task).subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
|
} else {
|
||||||
|
// Copy properties returned by the API
|
||||||
|
Object.assign(this.task, response.body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export class UserstoryFormComponent implements OnInit {
|
|||||||
public user: ScrumUser = { name: '' };
|
public user: ScrumUser = { name: '' };
|
||||||
public allCategories: any[] = [];
|
public allCategories: any[] = [];
|
||||||
public category: ScrumCategory = { title: '' };
|
public category: ScrumCategory = { title: '' };
|
||||||
private editing: boolean;
|
public editing: boolean;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private backendService: BackendService,
|
private backendService: BackendService,
|
||||||
@ -67,6 +67,9 @@ export class UserstoryFormComponent implements OnInit {
|
|||||||
.subscribe((response) => {
|
.subscribe((response) => {
|
||||||
if (response.status > 399) {
|
if (response.status > 399) {
|
||||||
alert('Fehler');
|
alert('Fehler');
|
||||||
|
} else {
|
||||||
|
// Copy properties returned by the API
|
||||||
|
Object.assign(this.userstory, response.body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user