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:
parent
536fe327ad
commit
f97064effe
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user