diff --git a/src/app/components/generic-select/generic-select.component.html b/src/app/components/generic-select/generic-select.component.html index 7ce918d760dc2dd81118e05ed988801c93b960fb..0a75a714e006ecb3a3a4b20d2e946762b82c5831 100644 --- a/src/app/components/generic-select/generic-select.component.html +++ b/src/app/components/generic-select/generic-select.component.html @@ -1,6 +1,5 @@ <mat-form-field> - <mat-select [id]="selectId" [placeholder]="label" [(value)]="selectedValue" [multiple]="isMultiple" - [disabled]="isDisabled"> + <mat-select [id]="selectId" [placeholder]="label" [(value)]="selectedValue" [multiple]="isMultiple"> <mat-select-trigger *ngIf="isMultiple"> {{ selectedValue && selectedValue[0] ? entryLabel(selectedValue[0]) : '' }} <span *ngIf="selectedValue?.length > 1" class="multiple-selection-label"> diff --git a/src/app/components/select-field-line/select-field-line.component.ts b/src/app/components/select-field-line/select-field-line.component.ts index 2b8cb3a0316f47dcca30ab2727043de814211284..c6b2474a0f08e795ac58514bb58486d127e4ecdb 100644 --- a/src/app/components/select-field-line/select-field-line.component.ts +++ b/src/app/components/select-field-line/select-field-line.component.ts @@ -34,10 +34,6 @@ export class SelectFieldLineComponent implements OnInit { return this._select.multiple; } - public get isDisabled(): boolean { - return this._select.disabled; - } - public get entries(): SelectEntry[] { if (! this._select) { return []; diff --git a/src/app/formulaire/elements/select/select-field.ts b/src/app/formulaire/elements/select/select-field.ts index c6e2024ed5ea804d0ebb859d7055a93171a3f5d3..e904498824d8ac9082c6ecdae0bb8e523b5f3612 100644 --- a/src/app/formulaire/elements/select/select-field.ts +++ b/src/app/formulaire/elements/select/select-field.ts @@ -21,9 +21,6 @@ export abstract class SelectField extends Field { /** if true, user can select multiple values */ protected _multiple = false; - /** if true, select box is grayed out */ - public disabled = false; - /** string to build the select entries IDs from */ protected _entriesBaseId: string;