[SM-608] update SM marketing link in product-switcher (#4950)

This commit is contained in:
Will Martin 2023-03-08 14:48:22 -05:00 committed by GitHub
parent c223567cae
commit da9210b551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 10 deletions

View File

@ -26,12 +26,18 @@
<!-- Other options -->
<section
*ngIf="products.other.length > 0"
class="tw-mt-4 tw-flex tw-w-full tw-flex-col tw-border-0 tw-border-t tw-border-solid tw-border-t-text-muted tw-p-2 tw-pb-0"
class="tw-mt-4 tw-flex tw-w-full tw-flex-col tw-gap-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-text-muted tw-p-2 tw-pb-0"
>
<span class="tw-mb-1 tw-text-xs tw-text-muted">{{ "moreFromBitwarden" | i18n }}</span>
<a *ngFor="let product of products.other" bitLink [href]="product.marketingRoute">
<span class="tw-font-normal">
<i class="bwi {{ product.icon }} tw-m-0 !tw-mr-3"></i>{{ product.name }}
<a
*ngFor="let product of products.other"
bitLink
[href]="product.marketingRoute"
target="_blank"
rel="noopener noreferrer"
>
<span class="tw-flex tw-items-center tw-font-normal">
<i class="bwi bwi-fw {{ product.icon }} tw-m-0 !tw-mr-3"></i>{{ product.name }}
</span>
</a>
</section>

View File

@ -61,8 +61,7 @@ export class ProductSwitcherContentComponent {
name: "Secrets Manager Beta",
icon: "bwi-cli",
appRoute: ["/sm", smOrg?.id],
// TODO: update marketing link
marketingRoute: "#",
marketingRoute: "https://bitwarden.com/products/secrets-manager/",
},
orgs: {
name: "Organizations",
@ -74,14 +73,16 @@ export class ProductSwitcherContentComponent {
const bento: ProductSwitcherItem[] = [products.pm];
const other: ProductSwitcherItem[] = [];
if (smOrg) {
bento.push(products.sm);
}
if (orgs.length === 0) {
other.push(products.orgs);
}
if (smOrg) {
bento.push(products.sm);
} else {
other.push(products.sm);
}
return {
bento,
other,