mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
organization status changed code changes (#12249)
* organization status changed code changes * Remove the stop so a reconnect can be made
This commit is contained in:
@@ -243,6 +243,20 @@ export class AppComponent implements OnDestroy, OnInit {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.router.navigate(["/remove-password"]);
|
||||
break;
|
||||
case "syncOrganizationStatusChanged": {
|
||||
const { organizationId, enabled } = message;
|
||||
const organizations = await firstValueFrom(this.organizationService.organizations$);
|
||||
const organization = organizations.find((org) => org.id === organizationId);
|
||||
|
||||
if (organization) {
|
||||
const updatedOrganization = {
|
||||
...organization,
|
||||
enabled: enabled,
|
||||
};
|
||||
await this.organizationService.upsert(updatedOrganization);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,6 @@ export class AdjustPaymentDialogComponent {
|
||||
}
|
||||
});
|
||||
await response;
|
||||
await new Promise((resolve) => setTimeout(resolve, 10000));
|
||||
this.toastService.showToast({
|
||||
variant: "success",
|
||||
title: null,
|
||||
|
||||
Reference in New Issue
Block a user