summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts
diff options
context:
space:
mode:
authorAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2021-01-11 14:10:35 +0200
committerAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2021-01-11 14:10:35 +0200
commit006cede8158bb1b3579805b6492df8b050aa83be (patch)
treefed7e59645e73d2fa235dbbdae7dd48aeeb01194 /cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts
parent0f6d8229cff178d1eca82f8cff0c678fafbb1e9c (diff)
Enable user to create new resource dictionary with json
Issue-ID: CCSDK-3078 Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: I2136eb5b2cec1e9db4c7124af9f09046ff5c15f0
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts b/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts
index 20cec7448..5734d4050 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-creation.store.ts
@@ -29,11 +29,14 @@ import { SourcesStore } from './sources-template/sources.store';
providedIn: 'root'
})
export class DictionaryCreationStore extends Store<ResourceDictionary> {
- constructor(private dictionaryCreationService: DictionaryCreationService, private sourcesStore: SourcesStore) {
+ constructor(
+ private dictionaryCreationService: DictionaryCreationService,
+ private sourcesStore: SourcesStore
+ ) {
super(new ResourceDictionary());
}
-
- changeMetaData(metaDataObject: MetaData) {
+ // changeMetaData(metaDataObject: MetaData) {
+ changeMetaData(metaDataObject: any) {
console.log(metaDataObject);
this.setState({
...this.state,
@@ -43,7 +46,7 @@ export class DictionaryCreationStore extends Store<ResourceDictionary> {
getSources() {
this.sourcesStore.state$.subscribe(data => {
- console.log(data);
+ console.log(data);
});
}