Skip to content
Snippets Groups Projects
Commit 161a3dc0 authored by François Grand's avatar François Grand
Browse files

refactor: select component: remove unused disabled flag

refs #483
parent 8827eece
No related branches found
No related tags found
No related merge requests found
<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">
......
......@@ -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 [];
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment