mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +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,32 +180,36 @@
|
|||||||
>
|
>
|
||||||
{{ "removeSponsorship" | i18n }}
|
{{ "removeSponsorship" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
<h4 bitTypography="h4" class="tw-mt-9">{{ "storage" | i18n }}</h4>
|
<ng-container *ngIf="!customerDiscount || customerDiscount.id != 'sm-standalone'">
|
||||||
<p bitTypography="body1">
|
<h4 bitTypography="h4" class="tw-mt-9">{{ "storage" | i18n }}</h4>
|
||||||
{{ "subscriptionStorage" | i18n: sub.maxStorageGb || 0 : sub.storageName || "0 MB" }}
|
<p bitTypography="body1">
|
||||||
</p>
|
{{ "subscriptionStorage" | i18n: sub.maxStorageGb || 0 : sub.storageName || "0 MB" }}
|
||||||
<bit-progress [barWidth]="storagePercentage" bgColor="success"></bit-progress>
|
</p>
|
||||||
<ng-container *ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel">
|
<bit-progress [barWidth]="storagePercentage" bgColor="success"></bit-progress>
|
||||||
<div class="tw-mt-3">
|
<ng-container
|
||||||
<div class="tw-flex tw-space-x-2">
|
*ngIf="subscription && !subscription.cancelled && !subscriptionMarkedForCancel"
|
||||||
<button
|
>
|
||||||
bitButton
|
<div class="tw-mt-3">
|
||||||
buttonType="secondary"
|
<div class="tw-flex tw-space-x-2">
|
||||||
type="button"
|
<button
|
||||||
[bitAction]="adjustStorage(true)"
|
bitButton
|
||||||
>
|
buttonType="secondary"
|
||||||
{{ "addStorage" | i18n }}
|
type="button"
|
||||||
</button>
|
[bitAction]="adjustStorage(true)"
|
||||||
<button
|
>
|
||||||
bitButton
|
{{ "addStorage" | i18n }}
|
||||||
buttonType="secondary"
|
</button>
|
||||||
type="button"
|
<button
|
||||||
[bitAction]="adjustStorage(false)"
|
bitButton
|
||||||
>
|
buttonType="secondary"
|
||||||
{{ "removeStorage" | i18n }}
|
type="button"
|
||||||
</button>
|
[bitAction]="adjustStorage(false)"
|
||||||
|
>
|
||||||
|
{{ "removeStorage" | i18n }}
|
||||||
|
</button>
|
||||||
|
</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>
|
||||||
|
Loading…
Reference in New Issue
Block a user