diff options
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts index 31dbeadd4e..f0c1d938a9 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts @@ -350,14 +350,13 @@ export class ConstraintsComponent implements OnInit { }); const valRef = newForm.get('value') as FormArray; - if (constraint.hasOwnProperty(ConstraintTypes.valid_values)) { constraint.validValues.forEach((val) => { - valRef.push(new FormControl(val, this.constraintValidators)); + valRef.push(new FormControl({value: val, disabled: this.isViewOnly}, this.constraintValidators)); }); } else { constraint.inRange.forEach((val) => { - valRef.push(new FormControl(val, this.constraintValidators)); + valRef.push(new FormControl({value: val, disabled: this.isViewOnly}, this.constraintValidators)); }); } |