From 142ec3d2625d5d6fa8518a8e2b22832e93466f60 Mon Sep 17 00:00:00 2001 From: Ezhilarasi Date: Tue, 3 Sep 2019 17:13:12 +0530 Subject: CDS UI code changes Change-Id: Idca4f7e1e04853bd2118308dafa67fd2d7aee7d8 Issue-ID: CCSDK-1275 Signed-off-by: Ezhilarasi --- .../search-from-database/search-from-database.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts index 1341b8bd1..58ed036aa 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-from-database/search-from-database.component.ts @@ -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: '' }; -- cgit 1.2.3-korg