Ajout d'un message de chargement

This commit is contained in:
Sébastien André
2019-11-24 18:39:18 +01:00
parent 3d25119757
commit bab92186dd
9 changed files with 143 additions and 122 deletions

View File

@@ -72,5 +72,5 @@
</mat-form-field>
<br />
<button class="btn btn-primary">Submit</button>
<button class="btn btn-primary" *ngIf="isValidatedForm">Submit</button>
</form>

View File

@@ -65,6 +65,12 @@ export class NewJumpComponent implements OnInit {
);
}
public isValidatedForm: boolean =
this.selectedDz != undefined &&
this.selectedGear != undefined &&
this.selectedAircraft != undefined &&
this.selectedJumpType != undefined;
private getListOfJumpTypes() {
this.serviceApiGet.getListOfJumpTypes().subscribe(data => {
this.listOfJumpType = data;