- constructor(private sourcesStore: SourcesStore) {
- this.sourcesStore.state$.subscribe(sources => {
- this.sources = sources.sources;
+ constructor(
+ private sourcesStore: SourcesStore,
+ private dictionaryCreationService: DictionaryCreationService
+ ) {
+
+ }
+
+ ngOnInit() {
+ // this.sourcesStore.getAllSources();
+ this.dictionaryCreationService.getSources().subscribe(sources => {
+ // console.log(sources);
+ this.sources = sources[0];
+ // this.sources = {
+ // "input": "source-input", "rest": "source-rest", "default":"source-default", "capability": "source-capability",
+ // "sdnc": "source-rest", "vault-data": "source-rest", "processor-db": "source-db", "aai-data": "source-rest",
+ // "script": "source-capability"
+ // };