Correction sur l'ajout de sauts sur 1 jour.
This commit is contained in:
@@ -99,18 +99,17 @@ export class NewJumpComponent implements OnInit {
|
||||
this.deployAltitude,
|
||||
this.countOfJumps,
|
||||
this.comments,
|
||||
this.isSpecial === undefined ? false : this.isSpecial);
|
||||
this.isSpecial === undefined ? false : this.isSpecial)
|
||||
.subscribe(() => {
|
||||
this.comments = undefined;
|
||||
this.withCutaway = false;
|
||||
this.isSpecial = false;
|
||||
|
||||
setTimeout(() => {
|
||||
this.comments = undefined;
|
||||
this.withCutaway = false;
|
||||
this.isSpecial = false;
|
||||
|
||||
if (this.resetForm === true) {
|
||||
this.initForm();
|
||||
}
|
||||
this.pendingAddRequest = false;
|
||||
}, 1000);
|
||||
if (this.resetForm === true) {
|
||||
this.initForm();
|
||||
}
|
||||
this.pendingAddRequest = false;
|
||||
});
|
||||
}
|
||||
|
||||
public isValidatedForm(): boolean {
|
||||
@@ -169,7 +168,8 @@ export class NewJumpComponent implements OnInit {
|
||||
|
||||
private initForm() {
|
||||
this.endDate = new Date();
|
||||
this.beginDate = this.dateService.AddDays(new Date(), -1);
|
||||
this.endDate.setHours(0, 0, 0, 0);
|
||||
this.beginDate = this.dateService.AddDays(this.endDate, -1);
|
||||
|
||||
this.exitAltitude = 4000;
|
||||
this.deployAltitude = 1000;
|
||||
|
||||
Reference in New Issue
Block a user