From 3b54bbd168c5a9c7e49072e1af329ff6a68b930f Mon Sep 17 00:00:00 2001 From: Alec Rippberger <127791530+alec-livefront@users.noreply.github.com> Date: Mon, 29 Jul 2024 16:24:35 -0500 Subject: [PATCH] [PM-7902] Create V2 Note Component View (#10150) * Rename component to The Figma designs show and update to the Additional Information section. The heading changed to "Additional options". It probably makes sense to update the component name to match. * Make view note header "note" lowercase. * Add new translation messages for view header. * Revert "Add new translation messages for view header." This reverts commit 4e8877fe71062cf0ba29d47fb270f24717904d5d. * Make cipher headers lowercase via toLowerCase function * Remove unused import. * run npm ci && npm run prettier * add back missing import --- .../components/vault-v2/view-v2/view-v2.component.ts | 11 +++++++---- .../additional-options.component.html} | 2 +- .../additional-options.component.ts} | 6 +++--- libs/vault/src/cipher-view/cipher-view.component.html | 4 ++-- libs/vault/src/cipher-view/cipher-view.component.ts | 4 ++-- 5 files changed, 15 insertions(+), 12 deletions(-) rename libs/vault/src/cipher-view/{additional-information/additional-information.component.html => additional-options/additional-options.component.html} (88%) rename libs/vault/src/cipher-view/{additional-information/additional-information.component.ts => additional-options/additional-options.component.ts} (80%) diff --git a/apps/browser/src/vault/popup/components/vault-v2/view-v2/view-v2.component.ts b/apps/browser/src/vault/popup/components/vault-v2/view-v2/view-v2.component.ts index 8fb3963831..bacb90f043 100644 --- a/apps/browser/src/vault/popup/components/vault-v2/view-v2/view-v2.component.ts +++ b/apps/browser/src/vault/popup/components/vault-v2/view-v2/view-v2.component.ts @@ -84,13 +84,16 @@ export class ViewV2Component { setHeader(type: CipherType) { switch (type) { case CipherType.Login: - return this.i18nService.t("viewItemHeader", this.i18nService.t("typeLogin")); + return this.i18nService.t("viewItemHeader", this.i18nService.t("typeLogin").toLowerCase()); case CipherType.Card: - return this.i18nService.t("viewItemHeader", this.i18nService.t("typeCard")); + return this.i18nService.t("viewItemHeader", this.i18nService.t("typeCard").toLowerCase()); case CipherType.Identity: - return this.i18nService.t("viewItemHeader", this.i18nService.t("typeIdentity")); + return this.i18nService.t( + "viewItemHeader", + this.i18nService.t("typeIdentity").toLowerCase(), + ); case CipherType.SecureNote: - return this.i18nService.t("viewItemHeader", this.i18nService.t("note")); + return this.i18nService.t("viewItemHeader", this.i18nService.t("note").toLowerCase()); } } diff --git a/libs/vault/src/cipher-view/additional-information/additional-information.component.html b/libs/vault/src/cipher-view/additional-options/additional-options.component.html similarity index 88% rename from libs/vault/src/cipher-view/additional-information/additional-information.component.html rename to libs/vault/src/cipher-view/additional-options/additional-options.component.html index 139307d11e..1650ba2d12 100644 --- a/libs/vault/src/cipher-view/additional-information/additional-information.component.html +++ b/libs/vault/src/cipher-view/additional-options/additional-options.component.html @@ -1,6 +1,6 @@ -

{{ "additionalInformation" | i18n }}

+

{{ "additionalOptions" | i18n }}