remove double subscription to `moreProducts$`

This commit is contained in:
nick-livefront 2024-04-26 16:16:25 -05:00
parent dafaf01b39
commit 6dd95d60f6
No known key found for this signature in database
GPG Key ID: FF670021ABCAB82E
1 changed files with 21 additions and 19 deletions

View File

@ -13,25 +13,27 @@
</span>
</ng-container>
</bit-nav-item>
<section
*ngIf="((moreProducts$ | async) ?? []).length > 0"
class="tw-mt-2 tw-flex tw-w-full tw-flex-col tw-gap-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-text-alt2"
>
<span class="tw-text-xs !tw-text-alt2 tw-p-2 tw-pb-0">{{ "moreFromBitwarden" | i18n }}</span>
<a
*ngFor="let more of moreProducts$ | async"
[href]="more.marketingRoute"
target="_blank"
rel="noreferrer"
class="tw-flex tw-py-2 tw-px-4 tw-font-semibold !tw-text-alt2 !tw-no-underline hover:tw-bg-primary-300/60 [&>:not(.bwi)]:hover:tw-underline"
<ng-container *ngIf="(moreProducts$ | async) ?? [] as moreProducts">
<section
*ngIf="moreProducts.length > 0"
class="tw-mt-2 tw-flex tw-w-full tw-flex-col tw-gap-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-text-alt2"
>
<i class="bwi bwi-fw {{ more.icon }} tw-mt-1"></i>
<div>
{{ more.navigationUIDetails?.name ?? more.name }}
<div *ngIf="more.navigationUIDetails?.supportingText" class="tw-text-xs tw-font-normal">
{{ more.navigationUIDetails.supportingText }}
<span class="tw-text-xs !tw-text-alt2 tw-p-2 tw-pb-0">{{ "moreFromBitwarden" | i18n }}</span>
<a
*ngFor="let more of moreProducts"
[href]="more.marketingRoute"
target="_blank"
rel="noreferrer"
class="tw-flex tw-py-2 tw-px-4 tw-font-semibold !tw-text-alt2 !tw-no-underline hover:tw-bg-primary-300/60 [&>:not(.bwi)]:hover:tw-underline"
>
<i class="bwi bwi-fw {{ more.icon }} tw-mt-1"></i>
<div>
{{ more.navigationUIDetails?.name ?? more.name }}
<div *ngIf="more.navigationUIDetails?.supportingText" class="tw-text-xs tw-font-normal">
{{ more.navigationUIDetails.supportingText }}
</div>
</div>
</div>
</a>
</section>
</a>
</section>
</ng-container>
</div>