Amélioration du formulaire d'ajout pour appeler
l'API X fois
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user