Merge "Replace windows alert with Notification component"
authorDan Timoney <dtimoney@att.com>
Tue, 25 Jun 2019 18:57:41 +0000 (18:57 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 25 Jun 2019 18:57:41 +0000 (18:57 +0000)
1  2 
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts

@@@ -96,15 -97,10 +97,16 @@@ export class MetadataComponent implemen
    }
  
    UploadMetadata() {
+     this.loader.showLoader();
      this.metadata = Object.assign({}, this.CBAMetadataForm.value);
      this.blueprint.metadata = this.metadata;
 -
 +    if( this.blueprint && 
 +        this.blueprint['topology_template'] && 
 +        this.blueprint['topology_template'].workflows && 
 +        this.blueprint['topology_template'].workflows['resource-assignment'] &&
 +        this.blueprint['topology_template'].workflows['resource-assignment'].name) {
 +          delete this.blueprint['topology_template'].workflows['resource-assignment'].name;
 +      }
      this.filesData.forEach((fileNode) => {
        if (fileNode.name.includes(this.blueprintName) && fileNode.name == this.entryDefinition) {
          fileNode.data = JSON.stringify(this.blueprint, null, "\t");