Tests de correction sur l'ajout de saut
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
favorite</mat-icon>
|
favorite</mat-icon>
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-autocomplete>
|
</mat-autocomplete>
|
||||||
<button mat-button *ngIf="selectedDz" matSuffix mat-icon-button aria-label="Clear" (click)="selectedDz=undefined">
|
<button mat-button *ngIf="selectedDz" matSuffix mat-icon-button aria-label="Clear" (click)="resetDz()">
|
||||||
<mat-icon>close</mat-icon>
|
<mat-icon>close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@@ -155,16 +155,19 @@ export class NewJumpComponent implements OnInit {
|
|||||||
|
|
||||||
public onChangeDz(event: any) {
|
public onChangeDz(event: any) {
|
||||||
let filterValue: string;
|
let filterValue: string;
|
||||||
if (event.id !== undefined) {
|
// if (event.id !== undefined) {
|
||||||
filterValue = event.name.toLowerCase();
|
// filterValue = event.name.toLowerCase();
|
||||||
} else {
|
// } else {
|
||||||
|
// filterValue = event.toLowerCase();
|
||||||
|
// }
|
||||||
|
if (event.id === undefined) {
|
||||||
filterValue = event.toLowerCase();
|
filterValue = event.toLowerCase();
|
||||||
}
|
|
||||||
|
|
||||||
this.listOfFilteredDropZone = this.listOfDropZone;
|
this.listOfFilteredDropZone = this.listOfDropZone;
|
||||||
this.listOfFilteredDropZone = this.listOfFilteredDropZone.filter((option) =>
|
this.listOfFilteredDropZone = this.listOfFilteredDropZone.filter((option) =>
|
||||||
option.name.toLowerCase().includes(filterValue)
|
option.name.toLowerCase().includes(filterValue)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public onChangeBeginDate(event: any) {
|
public onChangeBeginDate(event: any) {
|
||||||
@@ -174,4 +177,8 @@ export class NewJumpComponent implements OnInit {
|
|||||||
public notLoadingToDisplay(): boolean {
|
public notLoadingToDisplay(): boolean {
|
||||||
return !(this.pendingAddRequest || this.countDatasLoaded !== 4);
|
return !(this.pendingAddRequest || this.countDatasLoaded !== 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public resetDz() {
|
||||||
|
this.selectedDz = undefined;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user