diff --git a/jslib b/jslib index 72096747..ea9a8b97 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 720967475b37d635c18a1eb74bb3702445647b4d +Subproject commit ea9a8b979d5b5797ddf010bbc625843b149065e9 diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 80c7c12a..e68ede8a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -33,7 +33,6 @@ import { VaultTimeoutInputComponent } from './accounts/vault-timeout-input.compo import { CalloutComponent } from 'jslib-angular/components/callout.component'; import { IconComponent } from 'jslib-angular/components/icon.component'; -import { VerifyMasterPasswordComponent } from 'jslib-angular/components/verify-master-password.component'; import { A11yTitleDirective } from 'jslib-angular/directives/a11y-title.directive'; import { ApiActionDirective } from 'jslib-angular/directives/api-action.directive'; @@ -75,6 +74,7 @@ import { NavComponent } from './layout/nav.component'; import { PasswordRepromptComponent } from './components/password-reprompt.component'; import { SetPinComponent } from './components/set-pin.component'; +import { VerifyMasterPasswordComponent } from './components/verify-master-password.component'; import { registerLocaleData } from '@angular/common'; import localeAf from '@angular/common/locales/af'; diff --git a/src/app/components/verify-master-password.component.html b/src/app/components/verify-master-password.component.html new file mode 100644 index 00000000..bf85c299 --- /dev/null +++ b/src/app/components/verify-master-password.component.html @@ -0,0 +1,25 @@ + +
+ + +
+
+ +
+ + + + + {{'codeSent' | i18n}} + +
+ +
+ + +
+
diff --git a/src/app/components/verify-master-password.component.ts b/src/app/components/verify-master-password.component.ts new file mode 100644 index 00000000..d51e5dc6 --- /dev/null +++ b/src/app/components/verify-master-password.component.ts @@ -0,0 +1,31 @@ +import { + animate, + style, + transition, + trigger, +} from '@angular/animations'; +import { Component } from '@angular/core'; +import { NG_VALUE_ACCESSOR } from '@angular/forms'; + +import { VerifyMasterPasswordComponent as BaseComponent } from 'jslib-angular/components/verify-master-password.component'; + +@Component({ + selector: 'app-verify-master-password', + templateUrl: 'verify-master-password.component.html', + providers: [ + { + provide: NG_VALUE_ACCESSOR, + multi: true, + useExisting: VerifyMasterPasswordComponent, + }, + ], + animations: [ + trigger('sent', [ + transition(':enter', [ + style({ opacity: 0 }), + animate('100ms', style({ opacity: 1 })), + ]), + ]), + ], +}) +export class VerifyMasterPasswordComponent extends BaseComponent { } diff --git a/src/app/vault/export.component.html b/src/app/vault/export.component.html index dece1297..e8e49030 100644 --- a/src/app/vault/export.component.html +++ b/src/app/vault/export.component.html @@ -16,15 +16,11 @@ -
-
- - -
-
+ + diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 31a4e2c4..3b9cb143 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -541,12 +541,21 @@ "noItemsInList": { "message": "There are no items to list." }, - "requestVerificationCode": { - "message": "Request one-time password" + "sendVerificationCode": { + "message": "Send a verification code to your email" + }, + "sendCode": { + "message": "Send Code" + }, + "codeSent": { + "message": "Code Sent" }, "verificationCode": { "message": "Verification Code" }, + "confirmIdentity": { + "message": "Confirm your identity to continue." + }, "verificationCodeRequired": { "message": "Verification code is required." }, @@ -1260,9 +1269,6 @@ "encExportAccountWarningDesc": { "message": "Account encryption keys are unique to each Bitwarden user account, so you can't import an encrypted export into a different account." }, - "exportMasterPassword": { - "message": "Enter your master password to export your vault data." - }, "noOrganizationsList": { "message": "You do not belong to any organizations. Organizations allow you to securely share items with other users." },