Fix context copy buttons work only with TOTP present (#794)
This commit is contained in:
parent
24af5aca55
commit
99c8082866
|
@ -125,7 +125,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
|
|||
}
|
||||
|
||||
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;
|
||||
} else if (value === cipher.login.totp) {
|
||||
value = await this.totpService.getCode(value);
|
||||
|
|
Loading…
Reference in New Issue