Ajout d'un message de chargement
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user