diff options
author | 2020-02-02 11:20:55 +0200 | |
---|---|---|
committer | 2020-02-02 11:20:55 +0200 | |
commit | fc3164594f1824451139da582c83cb662f568595 (patch) | |
tree | 51714d53ff1398da046f30b5aa2ffbfddc2e971c /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts | |
parent | 3da10ae82ee1810e0fb995141dae5495eff28176 (diff) |
adding DSL-Definition component
Issue-ID: CCSDK-2066
Signed-off-by: shaaban Altanany <shaaban.eltanany.ext@orange.com>
Change-Id: I8b16e78cf3961c0c37a721fd37898fb3a7a850a0
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts index 93998e8a9..3e37952b2 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.store.ts @@ -23,7 +23,7 @@ import {Injectable} from '@angular/core'; import {Store} from '../../../../common/core/stores/Store'; -import {CBAPackage} from './mapping-models/CBAPacakge.model'; +import {CBAPackage, DslDefinition} from './mapping-models/CBAPacakge.model'; import {PackageCreationService} from './package-creation.service'; import {FolderNodeElement, MetaDataTabModel} from './mapping-models/metadata/MetaDataTab.model'; import * as JSZip from 'jszip'; @@ -49,6 +49,15 @@ export class PackageCreationStore extends Store<CBAPackage> { }); } + changeDslDefinition(dslDefinition: DslDefinition) { + + this.setState({ + ...this.state, + definitions: this.state.definitions.setDslDefinition(dslDefinition) + }); + } + + addDefinition(name: string, content: string) { this.setState({ |