From b7fbab84f5511a0bda81c639e06599be7467ab80 Mon Sep 17 00:00:00 2001
From: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com>
Date: Fri, 4 Aug 2023 14:13:59 -0400
Subject: [PATCH] [SM-876] Beta - remove beta word from product switcher and
don't use localization (#5959)
* updating product switcher to be localized and not say beta
* removing unused code
* Adding storybook messages i18n
* Removing localization
* removing localization
* removing localization
---
.../product-switcher-content.component.html | 4 ++--
.../product-switcher/product-switcher-content.component.ts | 6 +++---
.../layouts/product-switcher/product-switcher.stories.ts | 3 ---
3 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html
index 35b8b11b8e..293c024ac4 100644
--- a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html
+++ b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.html
@@ -22,7 +22,7 @@
>
{{
- product.name | i18n
+ product.name
}}
@@ -41,7 +41,7 @@
rel="noopener noreferrer"
>
- {{ product.name | i18n }}
+ {{ product.name }}
diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts
index 3d513d5df3..e0705dd070 100644
--- a/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts
+++ b/apps/web/src/app/layouts/product-switcher/product-switcher-content.component.ts
@@ -57,21 +57,21 @@ export class ProductSwitcherContentComponent {
*/
const products: Record<"pm" | "sm" | "orgs", ProductSwitcherItem> = {
pm: {
- name: "passwordManager",
+ name: "Password Manager",
icon: "bwi-lock",
appRoute: "/vault",
marketingRoute: "https://bitwarden.com/products/personal/",
isActive: !this.router.url.includes("/sm/"),
},
sm: {
- name: "secretsManager",
+ name: "Secrets Manager",
icon: "bwi-cli",
appRoute: ["/sm", smOrg?.id],
marketingRoute: "https://bitwarden.com/products/secrets-manager/",
isActive: this.router.url.includes("/sm/"),
},
orgs: {
- name: "organizations",
+ name: "Organizations",
icon: "bwi-business",
marketingRoute: "https://bitwarden.com/products/business/",
},
diff --git a/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts b/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts
index 81287f97b4..87e4202747 100644
--- a/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts
+++ b/apps/web/src/app/layouts/product-switcher/product-switcher.stories.ts
@@ -59,9 +59,6 @@ export default {
return new I18nMockService({
moreFromBitwarden: "More from Bitwarden",
switchProducts: "Switch Products",
- passwordManager: "Password Manager",
- secretsManager: "Secrets Manager",
- organizations: "Organizations",
});
},
},