aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/properties.ts
diff options
context:
space:
mode:
authorimamSidero <imam.hussain@est.tech>2023-01-24 16:03:54 +0000
committerMichael Morris <michael.morris@est.tech>2023-01-27 18:22:19 +0000
commit43ffce5d0d30872446c51afaf786d5cfad4378be (patch)
treec5ccdb92091586525b0b567f591c402ee642aecf /catalog-ui/src/app/models/properties.ts
parente3a17890903ee443d0b5d0ee872e316e4369318d (diff)
Provide add/edit constraints capability to inputs in properties page
Providing the capability to add or edit constraints to inputs in properies of a service Issue-ID: SDC-4346 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I56261441022751a191fe057aafa4c681c8db96c5
Diffstat (limited to 'catalog-ui/src/app/models/properties.ts')
-rw-r--r--catalog-ui/src/app/models/properties.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-ui/src/app/models/properties.ts b/catalog-ui/src/app/models/properties.ts
index 65158de23d..80575c4221 100644
--- a/catalog-ui/src/app/models/properties.ts
+++ b/catalog-ui/src/app/models/properties.ts
@@ -89,12 +89,12 @@ export class PropertyModel extends PropertyBEModel implements IPropertyModel {
filterTerm:string;
isAlreadySelected:boolean;
addOn:string;
-
+ propertyView: boolean = false;
constructor(property?:PropertyModel) {
super(property);
if (property) {
- // this.constraints = property.constraints;
+ this.constraints = property.constraints;
this.source = property.source;
this.valueUniqueUid = property.valueUniqueUid;
this.path = property.path;
@@ -105,6 +105,7 @@ export class PropertyModel extends PropertyBEModel implements IPropertyModel {
this.componentInstanceId = property.componentInstanceId;
this.parentValue = property.parentValue;
this.ownerId = property.ownerId;
+ this.propertyView = property.propertyView;
}
if (!this.schema || !this.schema.property) {