1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-30 23:23:52 +00:00

[PM-14275] Resolve reseller & CB MSP organization owner experience for subscription page (#11797)

* Fixed issue with Resellers and CB MSP Org Owners on subscription page

* Hide billing sync from Families
This commit is contained in:
Alex Morask
2024-10-31 11:05:05 -04:00
committed by GitHub
parent bb296c7f8d
commit 36b18c3e59
3 changed files with 32 additions and 18 deletions

View File

@@ -264,7 +264,12 @@
</bit-container>
<ng-template #hideSubscription>
<bit-container *ngIf="!loading">
<ng-container *ngIf="providerIsOnConsolidatedBilling; else providerIsNotOnConsolidatedBilling">
<ng-container
*ngIf="
organizationIsManagedByConsolidatedBillingMSP;
else organizationIsNotManagedByConsolidatedBillingMSP
"
>
<h2 bitTypography="h2">{{ "manageSubscription" | i18n }}</h2>
<p bitTypography="body1" *ngIf="userOrg.isProviderUser; else isOrganizationOwner">
{{ "manageSubscriptionFromThe" | i18n }}
@@ -281,7 +286,7 @@
</ng-template>
<ng-container *ngTemplateOutlet="setupSelfHost"></ng-container>
</ng-container>
<ng-template #providerIsNotOnConsolidatedBilling>
<ng-template #organizationIsNotManagedByConsolidatedBillingMSP>
<div class="tw-flex tw-flex-col tw-items-center tw-text-info">
<bit-icon [icon]="subscriptionHiddenIcon"></bit-icon>
<p class="tw-font-bold">{{ "billingManagedByProvider" | i18n: userOrg.providerName }}</p>
@@ -303,7 +308,13 @@
<button bitButton buttonType="secondary" type="button" (click)="downloadLicense()">
{{ "downloadLicense" | i18n }}
</button>
<button bitButton buttonType="secondary" type="button" (click)="manageBillingSync()">
<button
*ngIf="canUseBillingSync"
bitButton
buttonType="secondary"
type="button"
(click)="manageBillingSync()"
>
{{ (hasBillingSyncToken ? "viewBillingToken" : "setUpBillingSync") | i18n }}
</button>
</div>