1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

[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 --> <!-- Other options -->
<section <section
*ngIf="products.other.length > 0" *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> <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"> <a
<span class="tw-font-normal"> *ngFor="let product of products.other"
<i class="bwi {{ product.icon }} tw-m-0 !tw-mr-3"></i>{{ product.name }} 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> </span>
</a> </a>
</section> </section>

View File

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