From 72767dec748fac597c5ebbcb9b0574df03e63939 Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Thu, 15 Aug 2024 10:03:14 -0400 Subject: [PATCH] [PM-10514] New TOTP Counter Component (#10486) * new vault totp countdown component --- .../cipher-view/cipher-view.component.html | 6 +- .../login-credentials-view.component.html | 35 +++++--- .../login-credentials-view.component.ts | 14 +++- .../totp-countdown.component.html | 34 ++++++++ .../totp-countdown.component.ts | 80 +++++++++++++++++++ 5 files changed, 149 insertions(+), 20 deletions(-) create mode 100644 libs/vault/src/components/totp-countdown/totp-countdown.component.html create mode 100644 libs/vault/src/components/totp-countdown/totp-countdown.component.ts diff --git a/libs/vault/src/cipher-view/cipher-view.component.html b/libs/vault/src/cipher-view/cipher-view.component.html index 2a2a4ded05..68c80a7bd5 100644 --- a/libs/vault/src/cipher-view/cipher-view.component.html +++ b/libs/vault/src/cipher-view/cipher-view.component.html @@ -9,11 +9,7 @@ - + diff --git a/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html b/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html index 9ca983a5c9..3cd8431519 100644 --- a/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html +++ b/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html @@ -3,7 +3,7 @@

{{ "loginCredentials" | i18n }}

- + {{ "username" | i18n }} @@ -11,7 +11,7 @@ readonly bitInput type="text" - [value]="login.username" + [value]="cipher.login.username" aria-readonly="true" data-testid="login-username" /> @@ -19,20 +19,20 @@ bitIconButton="bwi-clone" bitSuffix type="button" - [appCopyClick]="login.username" + [appCopyClick]="cipher.login.username" [valueLabel]="'username' | i18n" showToast [appA11yTitle]="'copyValue' | i18n" data-testid="toggle-username" > - + {{ "password" | i18n }} @@ -45,7 +45,7 @@ (toggledChange)="pwToggleValue($event)" > - + - + {{ "verificationCodeTotp" | i18n }} +