1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-11391] Replace button tag with div for TOTP timer (#11116)

This commit is contained in:
Shane Melton
2024-09-20 06:56:21 -07:00
committed by GitHub
parent 1262623fac
commit 36a9228523
2 changed files with 3 additions and 5 deletions

View File

@@ -111,15 +111,13 @@
aria-readonly="true" aria-readonly="true"
data-testid="login-totp" data-testid="login-totp"
/> />
<button <div
*ngIf="isPremium$ | async" *ngIf="isPremium$ | async"
bitTotpCountdown bitTotpCountdown
[cipher]="cipher" [cipher]="cipher"
bitSuffix bitSuffix
type="button"
(sendCopyCode)="setTotpCopyCode($event)" (sendCopyCode)="setTotpCopyCode($event)"
class="tw-cursor-default" ></div>
></button>
<button <button
bitIconButton="bwi-clone" bitIconButton="bwi-clone"
bitSuffix bitSuffix

View File

@@ -6,7 +6,7 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { TypographyModule } from "@bitwarden/components"; import { TypographyModule } from "@bitwarden/components";
@Component({ @Component({
selector: "button[bitTotpCountdown]:not(button[bitButton])", selector: "[bitTotpCountdown]",
templateUrl: "totp-countdown.component.html", templateUrl: "totp-countdown.component.html",
standalone: true, standalone: true,
imports: [CommonModule, TypographyModule], imports: [CommonModule, TypographyModule],