diff options
author | vasraz <vasyl.razinkov@est.tech> | 2022-12-13 11:28:49 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-12-15 11:57:26 +0000 |
commit | 5f55d127357f0aa9d985343ee4dd431f6a3aa207 (patch) | |
tree | f6b543ec1cccc5955c9d08481644ee7a974b2e07 /catalog-ui/src/app/view-models | |
parent | 7a3dcaaba77cf6ab3212db9ce7539ee90cb33eab (diff) |
Fix 'Not possible to set value on a VFC property with constraint'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I04cae965de75037b36003a9fb6d5be579b39626f
Issue-ID: SDC-4307
Diffstat (limited to 'catalog-ui/src/app/view-models')
-rw-r--r-- | catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view.html | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view.html b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view.html index 2f67474d4f..d605cb95e8 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view.html +++ b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view.html @@ -201,30 +201,11 @@ data-ng-class="{error:(forms.editForm.value.$dirty && forms.editForm.value.$invalid), 'input-group' : editPropertyModel.property.addOn}"> <span ng-if="editPropertyModel.property.addOn" class="input-group-addon">{{editPropertyModel.property.addOn}}</span> - <!-- Has Constraints --> - <select class="i-sdc-form-select" - data-tests-id="constraints" - ng-if="(editPropertyModel.property.constraints)" - data-ng-disabled="editPropertyModel.property.readonly && !isPropertyValueOwner" - - data-ng-change="onValueChange()" - data-ng-model="editPropertyModel.property.value"> - <!-- Get the default value in case exist --> - <option value="{{editPropertyModel.property.value}}" name="{{editPropertyModel.property.value}}" hidden - selected> - {{editPropertyModel.property.value}} - </option> - <!-- add all constratint to Select list --> - <option ng-repeat='value in constraints' value="{{value}}" name="{{value}}"> - {{value}} - </option> - </select> - - <!-- No Constraints --> + <!-- Constraints any NOT Boolean --> <input class="i-sdc-form-input" data-tests-id="defaultvalue" - ng-if="!(editPropertyModel.property.constraints) && !((editPropertyModel.property.simpleType||editPropertyModel.property.type) == 'boolean')" + ng-if="!((editPropertyModel.property.simpleType||editPropertyModel.property.type) == 'boolean')" data-ng-maxlength="maxLength" data-ng-disabled="editPropertyModel.property.readonly && !isPropertyValueOwner" maxlength="{{maxLength}}" @@ -235,7 +216,6 @@ data-ng-model-options="{ debounce: 200 }" data-ng-change="('json'==editPropertyModel.property.type && forms.editForm.value.$setValidity('pattern', validateJson(editPropertyModel.property.value))) ||(!forms.editForm.value.$error.pattern && ('integer'==editPropertyModel.property.type && forms.editForm.value.$setValidity('pattern', validateIntRange(editPropertyModel.property.value)) || onValueChange()))" - data-ng-change="" autofocus/> <!-- Boolean --> <select class="i-sdc-form-select" |