From 2203e84a0fd3308ce99e4de6ed2519e663008316 Mon Sep 17 00:00:00 2001 From: Ahmed Abbas Date: Mon, 24 Feb 2020 14:59:21 +0200 Subject: add single function to action and save it to frontend store. Issue-ID: CCSDK-2017 Signed-off-by: Ahmed Abbas Change-Id: I866eadb31bcb56aec5aa05a1dd4b0989c47c6210 --- .../packages/designer/functions/functions.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions/functions.component.ts') 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 index 5a86150e8..e1e980ed9 100644 --- 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 @@ -1,6 +1,6 @@ import {Component, OnInit} from '@angular/core'; import {DesignerStore} from '../designer.store'; -import {ModelType} from '../../model/ModelType.model'; +import {ModelType} from '../model/ModelType.model'; @Component({ @@ -15,14 +15,14 @@ export class FunctionsComponent implements OnInit { this.designerStore.state$.subscribe(state => { console.log(state); - if (state.functions) { - this.viewedFunctions = state.functions; + if (state.serverFunctions) { + this.viewedFunctions = state.serverFunctions; } }); } ngOnInit() { - this.designerStore.getFuntions(); + this.designerStore.retrieveFuntions(); } } -- cgit 1.2.3-korg