Amélioration du formulaire d'ajout pour appeler

l'API X fois
This commit is contained in:
Sébastien André
2019-10-31 16:41:22 +01:00
parent cd95b2c9b1
commit 30b7f33bdf
5 changed files with 81 additions and 32 deletions

View File

@@ -24,6 +24,11 @@ export class NewJumpComponent implements OnInit {
constructor(private serviceComm: ServiceComm,
private serviceApiGet: ServiceApiGet,
private serviceApiPost: ServiceApiPost) {
}
ngOnInit() {
this.serviceComm.updatedComponentTitle('Add a new jump');
this.beginDate = new Date();
this.endDate = new Date();
@@ -32,12 +37,8 @@ export class NewJumpComponent implements OnInit {
this.countOfJumps = 0;
}
ngOnInit() {
this.serviceComm.updatedComponentTitle('Add a new jump');
}
onFormSubmit() {
this.serviceApiPost.AddJump(
this.serviceApiPost.AddListOfJump(
this.selectedJumpType,
this.selectedAircraft,
this.selectedDz,