summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2019-12-17 14:26:39 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-17 14:26:39 +0000
commit20b07e37990f1926d7b3cb45542b76c0336f9f19 (patch)
tree8b595442c16d4b2aee33c137015ca007f3b21d01 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts
parent383235b495c32a1762511f1837bc9e98af6226eb (diff)
parent2960c232dc70bcd0de375a3732f98cef41b9e0b4 (diff)
Merge "adding new designer component, sort and configuration dashboard"
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();
+ }
+
+}