1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

Only showing PM subscription adjustment form if the user is a PM user (#9011)

This commit is contained in:
Conner Turnbull 2024-05-17 14:14:46 -04:00 committed by GitHub
parent 536fe327ad
commit f97064effe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,7 +153,11 @@
<p bitTypography="body1">{{ subscriptionDesc }}</p> <p bitTypography="body1">{{ subscriptionDesc }}</p>
<ng-container <ng-container
*ngIf=" *ngIf="
subscription && canAdjustSeats && !subscription.cancelled && !subscriptionMarkedForCancel subscription &&
canAdjustSeats &&
!subscription.cancelled &&
!subscriptionMarkedForCancel &&
(!customerDiscount || customerDiscount.id != 'sm-standalone')
" "
> >
<h3 bitTypography="h3" class="tw-mt-7">{{ "passwordManager" | i18n }}</h3> <h3 bitTypography="h3" class="tw-mt-7">{{ "passwordManager" | i18n }}</h3>
@ -176,12 +180,15 @@
> >
{{ "removeSponsorship" | i18n }} {{ "removeSponsorship" | i18n }}
</button> </button>
<ng-container *ngIf="!customerDiscount || customerDiscount.id != 'sm-standalone'">
<h4 bitTypography="h4" class="tw-mt-9">{{ "storage" | i18n }}</h4> <h4 bitTypography="h4" class="tw-mt-9">{{ "storage" | i18n }}</h4>
<p bitTypography="body1"> <p bitTypography="body1">
{{ "subscriptionStorage" | i18n: sub.maxStorageGb || 0 : sub.storageName || "0 MB" }} {{ "subscriptionStorage" | i18n: sub.maxStorageGb || 0 : sub.storageName || "0 MB" }}
</p> </p>
<bit-progress [barWidth]="storagePercentage" bgColor="success"></bit-progress> <bit-progress [barWidth]="storagePercentage" bgColor="success"></bit-progress>
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"> <ng-container
*ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"
>
<div class="tw-mt-3"> <div class="tw-mt-3">
<div class="tw-flex tw-space-x-2"> <div class="tw-flex tw-space-x-2">
<button <button
@ -203,6 +210,7 @@
</div> </div>
</div> </div>
</ng-container> </ng-container>
</ng-container>
<ng-container *ngIf="showAdjustSecretsManager"> <ng-container *ngIf="showAdjustSecretsManager">
<h3 bitTypography="h3" class="tw-mt-9">{{ "secretsManager" | i18n }}</h3> <h3 bitTypography="h3" class="tw-mt-9">{{ "secretsManager" | i18n }}</h3>
<app-sm-adjust-subscription <app-sm-adjust-subscription