From e23e6bf1b03fd7573c88dc77885c0ab9bcf1eb25 Mon Sep 17 00:00:00 2001 From: Ezhilarasi Date: Mon, 9 Sep 2019 17:57:56 +0530 Subject: Added mode for kt and create method Change-Id: I4c1c20077a2da5269724fff12fc456a86b5168f4 Issue-ID: CCSDK-1275 Signed-off-by: Ezhilarasi --- .../src/app/common/utility/zipfile-extraction.component.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'cds-ui/client/src/app/common') diff --git a/cds-ui/client/src/app/common/utility/zipfile-extraction.component.ts b/cds-ui/client/src/app/common/utility/zipfile-extraction.component.ts index fcadee816..279405a6b 100644 --- a/cds-ui/client/src/app/common/utility/zipfile-extraction.component.ts +++ b/cds-ui/client/src/app/common/utility/zipfile-extraction.component.ts @@ -39,11 +39,21 @@ export class ZipfileExtractionComponent implements OnInit { private entryDefinition: string; validfile: boolean = false; uploadedFileName: string; - + filesData: any = []; + constructor(private loader: LoaderService) { } ngOnInit() { } + + create() { + this.filesData.forEach((path) => { + let index = path.name.indexOf("/"); + let name = path.name.slice(index + 1, path.name.length); + this.zipFile.file(name, path.data); + }); + } + async buildFileViewData(zip) { this.validfile = false; this.paths = []; -- cgit 1.2.3-korg