diff options
author | 2022-10-11 14:23:30 +0100 | |
---|---|---|
committer | 2022-10-17 14:57:35 +0000 | |
commit | c39e7d3aa7bc26b1378fc6d29660c8be466dad45 (patch) | |
tree | c6886b3147f1130138df646dd4c50a66f3272cc9 /catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts | |
parent | c3462d9ccaf7a89b38b8228938c99df451b1189b (diff) |
Increase character limit of VFC property name to 100 and allow @ character
VFC property name character limit is increased to 100 and allowing @ special character
Signed-off-by: imamSidero <imam.hussain@est.tech>
Issue-ID: SDC-4210
Change-Id: If7f0be254a62effe34ad426ba24eeb31f034dd3f
Diffstat (limited to 'catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts')
-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 103b1341c0..614f1583cb 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 @@ -47,6 +47,7 @@ interface IPropertyFormViewModelScope extends ng.IScope { editForm:ng.IFormController; footerButtons:Array<any>; isNew:boolean; + nameMaxLength:number; isLoading:boolean; componentMetadata: { isService: boolean, isVfc: boolean } validationPattern:RegExp; @@ -241,6 +242,7 @@ export class PropertyFormViewModel { this.$scope.validationPattern = this.ValidationPattern; this.$scope.propertyNameValidationPattern = this.PropertyNameValidationPattern; this.$scope.commentValidationPattern = this.CommentValidationPattern; + this.$scope.nameMaxLength = PROPERTY_VALUE_CONSTRAINTS.NAME_MAX_LENGTH; this.$scope.isNew = (this.formState === FormState.CREATE); this.$scope.componentMetadata = { isService: this.workspaceService.metadata.isService(), |