1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-2347] Refresh configs when environment urls change (#5507)

* [PM-2347] Re fetch feature flags when environment urls change and update UI.
This commit is contained in:
André Bispo
2023-05-25 14:38:23 +01:00
committed by GitHub
parent 8201bd4e34
commit 1a9a328d39
5 changed files with 37 additions and 16 deletions

View File

@@ -501,7 +501,8 @@ export default class MainBackground {
this.configService = new ConfigService(
this.stateService,
this.configApiService,
this.authService
this.authService,
this.environmentService
);
const systemUtilsServiceReloadCallback = () => {

View File

@@ -489,7 +489,12 @@ function getBgService<T>(service: keyof MainBackground) {
{
provide: ConfigServiceAbstraction,
useClass: BrowserConfigService,
deps: [StateServiceAbstraction, ConfigApiServiceAbstraction],
deps: [
StateServiceAbstraction,
ConfigApiServiceAbstraction,
AuthServiceAbstraction,
EnvironmentService,
],
},
{
provide: DialogServiceAbstraction,