summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/services/component-services
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2021-04-14 15:43:59 +0100
committerChristophe Closset <christophe.closset@intl.att.com>2021-04-19 12:54:21 +0000
commita82ac17a702339bdb1af830a6581e3b30b3f5ec1 (patch)
tree94a4e46295a0e4245342a8812de425618cb8dc17 /catalog-ui/src/app/ng2/services/component-services
parentb451083f7db8144822118613076c05ea8b25898f (diff)
Fix add property to a VFC
Added properties to a VFC were not being displayed on the UI Issue-ID: SDC-3559 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: Iede582ada4a25ddfb8f5ca5936c71e5c2b25e50b
Diffstat (limited to 'catalog-ui/src/app/ng2/services/component-services')
-rw-r--r--catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
index 992149976e..7b726e4172 100644
--- a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
+++ b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts
@@ -374,8 +374,9 @@ export class TopologyTemplateService {
// ------------------------------------------------ Properties API --------------------------------------------------//
addProperty = (componentType: string, componentId: string, property: PropertyModel):Observable<PropertyModel> => {
- return this.http.post<PropertyModel>(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/properties', property.convertToServerObject()).map((response) => {
- return new PropertyModel(response[Object.keys(response)[0]]);
+ return this.http.post<PropertyModel>(this.baseUrl + this.getServerTypeUrl(componentType) + componentId + '/properties', property.convertToServerObject())
+ .map((response) => {
+ return new PropertyModel(response);
});
}