diff --git a/apps/desktop/src/auth/set-password.component.ts b/apps/desktop/src/auth/set-password.component.ts index 989dcc19ce..c2861e7201 100644 --- a/apps/desktop/src/auth/set-password.component.ts +++ b/apps/desktop/src/auth/set-password.component.ts @@ -13,6 +13,8 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service"; import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; import { StateService } from "@bitwarden/common/platform/abstractions/state.service"; +import { EncString } from "@bitwarden/common/platform/models/domain/enc-string"; +import { MasterKey, UserKey } from "@bitwarden/common/platform/models/domain/symmetric-crypto-key"; import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password"; import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction"; import { DialogService } from "@bitwarden/components"; @@ -83,4 +85,13 @@ export class SetPasswordComponent extends BaseSetPasswordComponent implements On onWindowHidden() { this.showPassword = false; } + + protected async onSetPasswordSuccess( + masterKey: MasterKey, + userKey: [UserKey, EncString], + keyPair: [string, EncString] + ): Promise { + await super.onSetPasswordSuccess(masterKey, userKey, keyPair); + this.messagingService.send("redrawMenu"); + } } diff --git a/libs/angular/src/auth/components/set-password.component.ts b/libs/angular/src/auth/components/set-password.component.ts index 29bd162132..597363fd17 100644 --- a/libs/angular/src/auth/components/set-password.component.ts +++ b/libs/angular/src/auth/components/set-password.component.ts @@ -168,7 +168,7 @@ export class SetPasswordComponent extends BaseChangePasswordComponent { document.getElementById(confirmField ? "masterPasswordRetype" : "masterPassword").focus(); } - private async onSetPasswordSuccess( + protected async onSetPasswordSuccess( masterKey: MasterKey, userKey: [UserKey, EncString], keyPair: [string, EncString]