|
|
@ -14,18 +14,16 @@ import { InternalStore } from '../utils/internal-store-utils'; |
|
|
providedIn: 'root', |
|
|
providedIn: 'root', |
|
|
}) |
|
|
}) |
|
|
export class ConfigStateService { |
|
|
export class ConfigStateService { |
|
|
|
|
|
private updateSubject = new Subject<void>(); |
|
|
private readonly store = new InternalStore({} as ApplicationConfigurationDto); |
|
|
private readonly store = new InternalStore({} as ApplicationConfigurationDto); |
|
|
|
|
|
|
|
|
setState(config: ApplicationConfigurationDto){ |
|
|
setState(config: ApplicationConfigurationDto) { |
|
|
this.store.set(config) |
|
|
this.store.set(config); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
get createOnUpdateStream() { |
|
|
get createOnUpdateStream() { |
|
|
return this.store.sliceUpdate; |
|
|
return this.store.sliceUpdate; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private updateSubject = new Subject<void>(); |
|
|
|
|
|
|
|
|
|
|
|
constructor( |
|
|
constructor( |
|
|
private abpConfigService: AbpApplicationConfigurationService, |
|
|
private abpConfigService: AbpApplicationConfigurationService, |
|
|
private abpApplicationLocalizationService: AbpApplicationLocalizationService, |
|
|
private abpApplicationLocalizationService: AbpApplicationLocalizationService, |
|
|
@ -228,4 +226,4 @@ function splitKeys(keys: string[] | string): string[] { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return keys; |
|
|
return keys; |
|
|
} |
|
|
} |
|
|
|