Commit f2019a0f authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #14753 TIME 0:10 hide sector in contact field list

parent 70df2571
......@@ -32,7 +32,7 @@
style="text-align: center;">{{'lang.addAll' | translate}}</button>
<mat-divider></mat-divider>
<ng-container *ngFor="let field of contactForm">
<button mat-menu-item *ngIf="!field.display && field.unit === 'address'"
<button mat-menu-item *ngIf="!field.display && field.unit === 'address' && field.id !== 'sector"
(click)="field.display=!field.display">
<mat-icon *ngIf="field.filling" style="height: auto;padding-right: 10px;"
[title]="'lang.targetFillingField' | translate" [style.color]="fillingRate.color" class="fas fa-circle rate">
......
......@@ -747,7 +747,7 @@ export class ContactsFormComponent implements OnInit {
}
toogleAllFieldsUnit(idUnit: string) {
this.contactForm.filter(field => field.unit === idUnit).forEach((element: any) => {
this.contactForm.filter(field => field.unit === idUnit && field.id !== 'sector').forEach((element: any) => {
element.display = true;
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment