mirror of
https://github.com/bitwarden/web
synced 2025-12-12 14:23:18 +00:00
Fix context copy buttons work only with TOTP present (#794)
This commit is contained in:
@@ -125,7 +125,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
|
|||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user