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/forms/property-forms/component-property-form | |
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/forms/property-forms/component-property-form')
-rw-r--r-- | catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |