mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
[PM-4107] Only call config on successful sync (#7149)
This commit is contained in:
@@ -232,8 +232,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
case "syncStarted":
|
case "syncStarted":
|
||||||
break;
|
break;
|
||||||
case "syncCompleted":
|
case "syncCompleted":
|
||||||
await this.updateAppMenu();
|
if (message.successfully) {
|
||||||
|
this.updateAppMenu();
|
||||||
this.configService.triggerServerConfigFetch();
|
this.configService.triggerServerConfigFetch();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "openSettings":
|
case "openSettings":
|
||||||
await this.openModal<SettingsComponent>(SettingsComponent, this.settingsRef);
|
await this.openModal<SettingsComponent>(SettingsComponent, this.settingsRef);
|
||||||
|
|||||||
@@ -134,7 +134,9 @@ export class AppComponent implements OnDestroy, OnInit {
|
|||||||
case "syncStarted":
|
case "syncStarted":
|
||||||
break;
|
break;
|
||||||
case "syncCompleted":
|
case "syncCompleted":
|
||||||
|
if (message.successfully) {
|
||||||
this.configService.triggerServerConfigFetch();
|
this.configService.triggerServerConfigFetch();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "upgradeOrganization": {
|
case "upgradeOrganization": {
|
||||||
const upgradeConfirmed = await this.dialogService.openSimpleDialog({
|
const upgradeConfirmed = await this.dialogService.openSimpleDialog({
|
||||||
|
|||||||
Reference in New Issue
Block a user