summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models
diff options
context:
space:
mode:
authorAmichai Hemli <amichai.hemli@intl.att.com>2020-02-23 19:29:42 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-23 19:29:42 +0000
commitbf58511a20b396e97ab0a88dfe6fce3d7a54395f (patch)
tree20b88a465b5b542ac02c20629e788cf4229d5477 /vid-webpack-master/src/app/shared/models
parentb1fa496ef661ff3ed0a883f4979355a85f0c7906 (diff)
parent44ffee127dc8f1dc4cd793f4dd1e375057c33086 (diff)
Merge "upgrade vfmodule when upgraded already service, vnf and brother vfmodule e2e"
Diffstat (limited to 'vid-webpack-master/src/app/shared/models')
-rw-r--r--vid-webpack-master/src/app/shared/models/treeNodeModel.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/shared/models/treeNodeModel.ts b/vid-webpack-master/src/app/shared/models/treeNodeModel.ts
index 39f56228e..8da204ce6 100644
--- a/vid-webpack-master/src/app/shared/models/treeNodeModel.ts
+++ b/vid-webpack-master/src/app/shared/models/treeNodeModel.ts
@@ -34,9 +34,14 @@ export class TreeNodeModel {
instanceName?: string;
constructor(instance: ChildNodeInstance, nodeModel: NodeModel){
+
this.modelInvariantId = nodeModel.invariantUuid;
- this.modelCustomizationId = nodeModel.customizationUuid;
- this.modelId = nodeModel.uuid;
+ if (instance.modelInfo) {
+ this.modelCustomizationId = instance.modelInfo.modelCustomizationId;
+ this.modelId = instance.modelInfo.modelVersionId;
+ } else {
+ console.debug("no 'modelInfo' in node-instance", instance)
+ }
this.modelUniqueId = this.modelCustomizationId || this.modelId;
this.missingData = false;
this.id = instance.trackById;