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