From a5a065c7757432fb415930a7880ba10e62bb4123 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Fri, 27 Nov 2020 09:10:29 +0300 Subject: [PATCH] feat: implement new interfaces to config-state.service --- .../core/src/lib/services/config-state.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts b/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts index 5f8bca0b39..70365e0593 100644 --- a/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts @@ -1,20 +1,20 @@ import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; -import { ApplicationConfiguration } from '../models/application-configuration'; +import { ApplicationConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models'; import { InternalStore } from '../utils/internal-store-utils'; @Injectable({ providedIn: 'root', }) export class ConfigStateService { - private readonly store = new InternalStore({} as ApplicationConfiguration.Response); + private readonly store = new InternalStore({} as ApplicationConfigurationDto); get createOnUpdateStream() { return this.store.sliceUpdate; } - setState(state: ApplicationConfiguration.Response) { + setState(state: ApplicationConfigurationDto) { this.store.set(state); } @@ -26,11 +26,11 @@ export class ConfigStateService { return this.store.state[key]; } - getAll$(): Observable { + getAll$(): Observable { return this.store.sliceState(state => state); } - getAll(): ApplicationConfiguration.Response { + getAll(): ApplicationConfigurationDto { return this.store.state; }