attempt to fix issue with checkbox value type
parent
1328203f2f
commit
50e30685b2
|
@ -13,7 +13,7 @@
|
|||
<mat-checkbox
|
||||
*ngSwitchCase="'checkbox'"
|
||||
[value]="fieldValue"
|
||||
[checked]="fieldValue === 'true'"
|
||||
[checked]="fieldValue === true"
|
||||
(change)="onCheckboxChange($event)"
|
||||
>
|
||||
{{fieldDefinition.label}}
|
||||
|
|
|
@ -14,7 +14,7 @@ export class SettingFieldComponent implements OnInit {
|
|||
@Input() settingsValues: any;
|
||||
@Output() newValue = new EventEmitter<SettingChange>();
|
||||
@Output() skillAuthentication = new EventEmitter<string>();
|
||||
public fieldValue: string;
|
||||
public fieldValue: string | boolean | number;
|
||||
|
||||
constructor() { }
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ export interface SettingField {
|
|||
type: string;
|
||||
label: string;
|
||||
options?: SelectOptions[];
|
||||
value?: string;
|
||||
value?: string | boolean | number;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue