[PM-8833] Working through placement of the password generator

This commit is contained in:
Cesar Gonzalez 2024-09-17 12:01:07 -05:00
parent f9eb56dff5
commit 552b6f8076
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
1 changed files with 7 additions and 3 deletions

View File

@ -1355,6 +1355,11 @@ export class OverlayBackground implements OverlayBackgroundInterface {
previousFocusedFieldData?.inlineMenuFillType === InlineMenuFillType.AccountCreation &&
this.focusedFieldData.inlineMenuFillType !== InlineMenuFillType.AccountCreation;
if (this.focusedFieldData.inlineMenuFillType === InlineMenuFillType.PasswordGeneration) {
this.refreshGeneratedPassword().catch((error) => this.logService.error(error));
return;
}
if (accountCreationFieldBlurred || this.showInlineMenuAccountCreation()) {
this.updateInlineMenuOnAccountCreationField(previousFocusedFieldData).catch((error) =>
this.logService.error(error),
@ -1385,9 +1390,8 @@ export class OverlayBackground implements OverlayBackgroundInterface {
}
if (
this.focusedFieldData.inlineMenuFillType === InlineMenuFillType.PasswordGeneration ||
(this.focusedFieldData.inlineMenuFillType === CipherType.Login &&
this.focusedFieldData.accountCreationFieldType === "password")
this.focusedFieldData.inlineMenuFillType === CipherType.Login &&
this.focusedFieldData.accountCreationFieldType === "password"
) {
await this.refreshGeneratedPassword();
return;