summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts
new file mode 100644
index 000000000..2223c9fa6
--- /dev/null
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts
@@ -0,0 +1,26 @@
+import {Component, OnInit} from '@angular/core';
+import {DesignerStore} from '../designer.store';
+
+@Component({
+ selector: 'app-functions',
+ templateUrl: './functions.component.html',
+ styleUrls: ['./functions.component.css']
+})
+export class FunctionsComponent implements OnInit {
+ viewedFunctions: ModelType[] = [];
+
+ constructor(private designerStore: DesignerStore) {
+
+ this.designerStore.state$.subscribe(state => {
+ console.log(state);
+ if (state.functions) {
+ this.viewedFunctions = state.functions;
+ }
+ });
+ }
+
+ ngOnInit() {
+ this.designerStore.getFuntions();
+ }
+
+}