diff options
author | eschcam <cameron.scholes@est.tech> | 2023-01-06 12:17:56 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-02-28 12:24:57 +0000 |
commit | e546c7283de4abf182545cea1aa07a8de0233d3b (patch) | |
tree | 2966cf125ef7d089ca02ccb41aac3243bbf8ac7a /catalog-ui/src/app/view-models | |
parent | 1f589435d0213865e6d82b3441e1c3d18a263aaf (diff) |
Add validation for int and float constraints
Issue-ID: SDC-4316
Signed-off-by: eschcam <cameron.scholes@est.tech>
Change-Id: I6d6172743779291597305583f2a7f4f2145f57fb
Diffstat (limited to 'catalog-ui/src/app/view-models')
3 files changed, 2 insertions, 2 deletions
diff --git a/catalog-ui/src/app/view-models/forms/property-forms/base-property-form/property-form-base.less b/catalog-ui/src/app/view-models/forms/property-forms/base-property-form/property-form-base.less index 1c1c0c9c52..fabf883151 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/base-property-form/property-form-base.less +++ b/catalog-ui/src/app/view-models/forms/property-forms/base-property-form/property-form-base.less @@ -6,7 +6,6 @@ } form{ - width: 813px; [name="description"]{ min-height:50px; } diff --git a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts index 05045c1529..52e8c0018a 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts +++ b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts @@ -507,6 +507,8 @@ export class PropertyFormViewModel { } this.$scope.onConstraintChange = (constraints: any): void => { + console.log('$scope.onConstraintChange', constraints); + if (!this.$scope.invalidMandatoryFields) { this.$scope.footerButtons[0].disabled = !constraints.valid; } else { diff --git a/catalog-ui/src/app/view-models/forms/property-forms/select-datatype-modal/select-datatype-modal.less b/catalog-ui/src/app/view-models/forms/property-forms/select-datatype-modal/select-datatype-modal.less index 02b7612671..1eb7a4649f 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/select-datatype-modal/select-datatype-modal.less +++ b/catalog-ui/src/app/view-models/forms/property-forms/select-datatype-modal/select-datatype-modal.less @@ -6,7 +6,6 @@ } form{ - width: 813px; [name="description"]{ min-height:50px; } |