mirror of
https://github.com/bitwarden/browser
synced 2025-01-21 08:47:52 +01:00
Fix action buttons not working when TOTP is not available
This commit is contained in:
parent
76a31d089a
commit
b1e376ce66
@ -57,7 +57,7 @@ export class ActionButtonsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) {
|
async copy(cipher: CipherView, value: string, typeI18nKey: string, aType: string) {
|
||||||
if (value == null || !this.displayTotpCopyButton(cipher)) {
|
if (value == null || aType === 'TOTP' && !this.displayTotpCopyButton(cipher)) {
|
||||||
return;
|
return;
|
||||||
} else if (value === cipher.login.totp) {
|
} else if (value === cipher.login.totp) {
|
||||||
value = await this.totpService.getCode(value);
|
value = await this.totpService.getCode(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user