Ajouter un loader sur l'ajout des sauts

This commit is contained in:
Sébastien André
2020-02-03 12:26:25 +01:00
parent 72f0b13f34
commit 2d6b8f8b5f
3 changed files with 44 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
<form class="formNewJumps" (ngSubmit)="onFormSubmit()">
<form class="formNewJumps" (ngSubmit)="onFormSubmit()" *ngIf="allDatasLoaded() else loading">
<mat-form-field>
<mat-label>Choose the jump type</mat-label>
<input type="text" matInput [matAutocomplete]="autoJumpType" [(ngModel)]="selectedJumpType" name="selectedJumpType">
@@ -97,3 +97,7 @@
<br />
<button class="btn btn-primary" *ngIf="isValidatedForm()">Submit</button>
</form>
<ng-template #loading>
<mat-progress-spinner [mode]="'indeterminate'"></mat-progress-spinner>
</ng-template>