1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

[PM-7902] Create V2 Note Component View (#10150)

* Rename <additional-information> component to <additional-options>

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 4e8877fe71.

* Make cipher headers lowercase via toLowerCase function

* Remove unused import.

* run npm ci && npm run prettier

* add back missing import
This commit is contained in:
Alec Rippberger
2024-07-29 16:24:35 -05:00
committed by GitHub
parent 0bbbe5e139
commit 3b54bbd168
5 changed files with 15 additions and 12 deletions

View File

@@ -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());
}
}