Ajout du piège dans le formulaire
d'ajout de sauts
This commit is contained in:
@@ -6,6 +6,7 @@ import { JumpTypeResp } from "../../models/jumpType";
|
||||
import { AircraftResp } from "../../models/aircraft";
|
||||
import { DropZoneResp } from "../../models/dropzone";
|
||||
import { DateService } from "../../services/date.service";
|
||||
import { GearResp } from "../../models/gear";
|
||||
|
||||
@Component({
|
||||
selector: "app-new-jump",
|
||||
@@ -19,13 +20,14 @@ export class NewJumpComponent implements OnInit {
|
||||
defaultDeployAltitude: number;
|
||||
countOfJumps: number;
|
||||
selectedDz: number;
|
||||
selectedRig: number;
|
||||
selectedGear: number;
|
||||
selectedAircraft: number;
|
||||
selectedJumpType: number;
|
||||
withCutaway: boolean;
|
||||
listOfJumpType: Array<JumpTypeResp>;
|
||||
listOfAircraft: Array<AircraftResp>;
|
||||
listOfDropZone: Array<DropZoneResp>;
|
||||
listOfGear: Array<GearResp>;
|
||||
|
||||
constructor(
|
||||
private serviceComm: ServiceComm,
|
||||
@@ -53,7 +55,7 @@ export class NewJumpComponent implements OnInit {
|
||||
this.selectedJumpType,
|
||||
this.selectedAircraft,
|
||||
this.selectedDz,
|
||||
this.selectedRig,
|
||||
this.selectedGear,
|
||||
this.withCutaway,
|
||||
this.beginDate,
|
||||
this.endDate,
|
||||
@@ -68,6 +70,7 @@ export class NewJumpComponent implements OnInit {
|
||||
this.listOfJumpType = data;
|
||||
this.getListOfAircrafts();
|
||||
this.getListOfDropZones();
|
||||
this.getListOfGears();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -83,10 +86,9 @@ export class NewJumpComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
// private getListOfGears() {
|
||||
// this.serviceApiGet.getListOfGears()
|
||||
// .subscribe(data => {
|
||||
// this.listOfGear = data;
|
||||
// });
|
||||
// }
|
||||
private getListOfGears() {
|
||||
this.serviceApiGet.getListOfGears().subscribe(data => {
|
||||
this.listOfGear = data;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user