summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.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-editor/dictionary-editor.component.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-editor/dictionary-editor.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.ts
index 157a5aa25..63725a228 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/resource-dictionary/resource-dictionary-creation/dictionary-editor/dictionary-editor.component.ts
@@ -18,6 +18,8 @@
* ============LICENSE_END=========================================================
*/
import { Component, OnInit } from '@angular/core';
+import { DictionaryCreationService } from '../dictionary-creation.service';
+import { DictionaryCreationStore } from '../dictionary-creation.store';
@Component({
selector: 'app-dictionary-editor',
@@ -26,14 +28,18 @@ import { Component, OnInit } from '@angular/core';
})
export class DictionaryEditorComponent implements OnInit {
text = '';
- constructor() {
+ constructor(
+ private dictionaryStore: DictionaryCreationStore,
+ private dictionaryService: DictionaryCreationService
+ ) {
}
ngOnInit() {
}
textChanged(event) {
- console.log(event);
+ console.log(JSON.parse(event));
+ this.dictionaryStore.changeMetaData(JSON.parse(event));
}
}