CDS UI code changes 31/94831/1
authorEzhilarasi <ezhrajam@in.ibm.com>
Tue, 3 Sep 2019 11:43:12 +0000 (17:13 +0530)
committerEzhilarasi <ezhrajam@in.ibm.com>
Tue, 3 Sep 2019 11:43:22 +0000 (17:13 +0530)
Change-Id: Idca4f7e1e04853bd2118308dafa67fd2d7aee7d8
Issue-ID: CCSDK-1275
Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts
cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts
cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.module.ts

index 1341b8b..58ed036 100644 (file)
@@ -93,11 +93,9 @@ export class SearchFromDatabaseComponent implements OnInit {
       .then(blob => {
         const formData = new FormData();
         formData.append("file", blob);
-        // this.editorService.enrich("/enrich-blueprint/", formData)
         this.searchService.getBlueprintZip(artifactName + "/" + artifactVersion)
           .subscribe(
             (response) => {
-              // console.log(response);
               this.zipFile.files = {};
               this.zipFile.loadAsync(response)
                 .then((zip) => {
@@ -105,7 +103,7 @@ export class SearchFromDatabaseComponent implements OnInit {
                     this.buildFileViewData(zip);
                   }
                 });
-              // this.alertService.success('Blueprint enriched successfully');
+              
             },
             (error) => {
               this.alertService.error('Blue print error' + error.message);
@@ -116,12 +114,9 @@ export class SearchFromDatabaseComponent implements OnInit {
   async buildFileViewData(zip) {
     this.validfile = false;
     this.paths = [];
-    // console.log(zip.files);
     for (var file in zip.files) {
       console.log("name: " + zip.files[file].name);
       this.fileObject = {
-        // nameForUIDisplay: this.uploadedFileName + '/' + zip.files[file].name,
-        // name: zip.files[file].name,
         name: this.uploadedFileName + '/' + zip.files[file].name,
         data: ''
       };
index ee6e963..ed01e63 100644 (file)
@@ -99,7 +99,7 @@ export class SearchTemplateComponent implements OnInit {
       entryDefinition: this.entryDefinition
     }
     this.store.dispatch(new SetBlueprintState(blueprintState))
-    // this.store.dispatch(new LoadBlueprintSuccess(data));
+    
   }
 
   async buildFileViewData(zip) {
index a4e30a4..d79f9d8 100644 (file)
@@ -26,7 +26,6 @@ import { SearchTemplateComponent } from './search-template.component';
 import { ReactiveFormsModule } from '@angular/forms';
 import { AppMaterialModule } from 'src/app/common/modules/app-material.module';
 import { SharedModule} from 'src/app/common/shared/shared.module';
-// import { SelectTemplateService } from 'src/app/feature-modules/blueprint/select-template/select-template.service';
   
 @NgModule({
   declarations: [
@@ -42,6 +41,6 @@ import { SharedModule} from 'src/app/common/shared/shared.module';
     SearchTemplateComponent,
     SearchFromDatabaseComponent
     ],
-  // providers:[ SelectTemplateService]
+  
 })
 export class SearchTemplateModule { }