diff options
author | 2020-02-13 12:09:13 +0200 | |
---|---|---|
committer | 2020-02-13 20:24:36 +0000 | |
commit | 0a907ab983596975d1d03507adf2b23a1ec26975 (patch) | |
tree | 75f5e85ce6e605c0308af326425e789bac6a6811 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts | |
parent | e7e6a525ed0371bf4c3b67ec6221c823b6f9617f (diff) |
updating source-editor changes
Issue-ID: CCSDK-2070
Signed-off-by: ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I203f89eb81ea9685ca69226b108c121a8be5f193
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts index 634e5fc84..eee291bba 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/scripts-tab/scripts-tab.component.ts @@ -1,7 +1,9 @@ -import {Component, OnInit} from '@angular/core'; -import {FileSystemFileEntry, NgxFileDropEntry} from 'ngx-file-drop'; -import {PackageCreationStore} from '../package-creation.store'; -import {PackageCreationUtils} from '../package-creation.utils'; +import { Component, OnInit } from '@angular/core'; +import { FileSystemFileEntry, NgxFileDropEntry } from 'ngx-file-drop'; +import { PackageCreationStore } from '../package-creation.store'; +import { PackageCreationUtils } from '../package-creation.utils'; +import 'ace-builds/src-noconflict/ace'; +import 'ace-builds/webpack-resolver'; @Component({ selector: 'app-scripts-tab', @@ -43,7 +45,8 @@ export class ScriptsTabComponent implements OnInit { removeFile(fileIndex: number) { console.log(this.uploadedFiles[fileIndex]); - this.packageCreationStore.removeFileFromState(this.uploadedFiles[fileIndex].name); + const filename = 'Scripts/' + this.uploadedFiles[fileIndex].name; + this.packageCreationStore.removeFileFromState(filename); this.uploadedFiles.splice(fileIndex, 1); } |