mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
fix: Nest sub option in Options page, tie auto fill & auto copy features together
This commit is contained in:
@@ -254,12 +254,14 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
}
|
||||
}
|
||||
|
||||
const shouldCopyTotpOnAutoFill = await this.totpService.isAutoCopyOnAutoFillEnabled();
|
||||
const copyTotpOnAutoFill = await this.totpService.isAutoCopyOnAutoFillEnabled();
|
||||
const enableAutoFill = await this.totpService.isAutoCopyEnabled();
|
||||
const shouldCopyTotp = copyTotpOnAutoFill && enableAutoFill;
|
||||
|
||||
const totpCode = await this.doAutoFill({
|
||||
cipher: cipher,
|
||||
pageDetails: pageDetails,
|
||||
skipTotp: !fromCommand && !shouldCopyTotpOnAutoFill,
|
||||
skipTotp: !fromCommand && !shouldCopyTotp,
|
||||
skipLastUsed: !fromCommand,
|
||||
skipUsernameOnlyFill: !fromCommand,
|
||||
onlyEmptyFields: !fromCommand,
|
||||
|
||||
Reference in New Issue
Block a user