1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

PM-11427 Copy Totp Code without space (#10800)

This commit is contained in:
Jason Ng
2024-08-30 12:27:56 -04:00
committed by GitHub
parent c0fbb5ce39
commit d9ff8b0944
3 changed files with 15 additions and 7 deletions

View File

@@ -20,6 +20,11 @@ import {
import { BitTotpCountdownComponent } from "../../components/totp-countdown/totp-countdown.component";
type TotpCodeValues = {
totpCode: string;
totpCodeFormatted?: string;
};
@Component({
selector: "app-login-credentials-view",
templateUrl: "login-credentials-view.component.html",
@@ -47,7 +52,7 @@ export class LoginCredentialsViewComponent {
);
showPasswordCount: boolean = false;
passwordRevealed: boolean = false;
totpCopyCode: string;
totpCodeCopyObj: TotpCodeValues;
private datePipe = inject(DatePipe);
constructor(
@@ -77,7 +82,7 @@ export class LoginCredentialsViewComponent {
this.showPasswordCount = !this.showPasswordCount;
}
setTotpCopyCode(e: any) {
this.totpCopyCode = e;
setTotpCopyCode(e: TotpCodeValues) {
this.totpCodeCopyObj = e;
}
}