mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-01 23:01:28 +01:00
PM-4588 - Resolve desktop issue where account menu was disabled after a user JIT provisions into a MP encryption org - simply add a menu redraw call after succesfully setting the MP and relevant keys. (#6717)
This commit is contained in:
parent
5c7121d881
commit
a1729c97df
@ -13,6 +13,8 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.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 { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
import { DialogService } from "@bitwarden/components";
|
import { DialogService } from "@bitwarden/components";
|
||||||
@ -83,4 +85,13 @@ export class SetPasswordComponent extends BaseSetPasswordComponent implements On
|
|||||||
onWindowHidden() {
|
onWindowHidden() {
|
||||||
this.showPassword = false;
|
this.showPassword = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected async onSetPasswordSuccess(
|
||||||
|
masterKey: MasterKey,
|
||||||
|
userKey: [UserKey, EncString],
|
||||||
|
keyPair: [string, EncString]
|
||||||
|
): Promise<void> {
|
||||||
|
await super.onSetPasswordSuccess(masterKey, userKey, keyPair);
|
||||||
|
this.messagingService.send("redrawMenu");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ export class SetPasswordComponent extends BaseChangePasswordComponent {
|
|||||||
document.getElementById(confirmField ? "masterPasswordRetype" : "masterPassword").focus();
|
document.getElementById(confirmField ? "masterPasswordRetype" : "masterPassword").focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async onSetPasswordSuccess(
|
protected async onSetPasswordSuccess(
|
||||||
masterKey: MasterKey,
|
masterKey: MasterKey,
|
||||||
userKey: [UserKey, EncString],
|
userKey: [UserKey, EncString],
|
||||||
keyPair: [string, EncString]
|
keyPair: [string, EncString]
|
||||||
|
Loading…
Reference in New Issue
Block a user