Browse Source
Merge pull request #5305 from ArtemDzhereleiko/bug-fix/add-attribute/boolean
[3.3.2] UI: Fixed impossible to save new boolean attribute
pull/5334/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
ui-ngx/src/app/shared/components/value-input.component.ts
|
|
|
@ -124,8 +124,9 @@ export class ValueInputComponent implements OnInit, ControlValueAccessor { |
|
|
|
onValueTypeChanged() { |
|
|
|
if (this.valueType === ValueType.BOOLEAN) { |
|
|
|
this.modelValue = false; |
|
|
|
} if (this.valueType === ValueType.JSON) { |
|
|
|
} else if (this.valueType === ValueType.JSON) { |
|
|
|
this.modelValue = {}; |
|
|
|
this.inputForm.form.get('value').patchValue({}); |
|
|
|
} else { |
|
|
|
this.modelValue = null; |
|
|
|
} |
|
|
|
|