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:
parent
c223567cae
commit
da9210b551
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user