From 81d82489f5592770a9e5f9ee137bfc1558b48153 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Tue, 22 Sep 2020 11:56:38 +0200 Subject: adding saving simple function at designer Issue-ID: CCSDK-2298 Signed-off-by: ShaabanEltanany Change-Id: Id4ebd3413103d6433e84b3513c4f651176a9833f --- cds-ui/designer-client/src/app/common/core/services/api.service.ts | 4 ++++ cds-ui/designer-client/src/app/common/core/stores/Store.ts | 1 + 2 files changed, 5 insertions(+) (limited to 'cds-ui/designer-client/src/app/common') diff --git a/cds-ui/designer-client/src/app/common/core/services/api.service.ts b/cds-ui/designer-client/src/app/common/core/services/api.service.ts index de8aab886..8e27befb0 100644 --- a/cds-ui/designer-client/src/app/common/core/services/api.service.ts +++ b/cds-ui/designer-client/src/app/common/core/services/api.service.ts @@ -48,4 +48,8 @@ export class ApiService { return this.httpClient.post(url, body, options); } + + getCustomized(url: string, params?: any): Observable { + return this.httpClient.get(url, params); + } } diff --git a/cds-ui/designer-client/src/app/common/core/stores/Store.ts b/cds-ui/designer-client/src/app/common/core/stores/Store.ts index 0be804270..c6995787d 100644 --- a/cds-ui/designer-client/src/app/common/core/stores/Store.ts +++ b/cds-ui/designer-client/src/app/common/core/stores/Store.ts @@ -17,6 +17,7 @@ export class Store { protected setState(nextState: T): void { console.log('setting state', this.subject); this.subject.next(nextState); + console.log('current state', this.subject); } public unsubscribe() { -- cgit 1.2.3-korg