1
0
mirror of https://github.com/bitwarden/web synced 2026-01-02 00:23:16 +00:00

Show upgrade plan button for free orgs. (#1269)

* Show upgrade plan button for free orgs.

* Add families plan callout for subscription upgrade
This commit is contained in:
Matt Gibson
2021-11-01 14:29:46 -05:00
committed by GitHub
parent 2700caf2a8
commit bb0b5f2d87
3 changed files with 38 additions and 17 deletions

View File

@@ -70,6 +70,15 @@
</div>
</ng-container>
</div>
<ng-container>
<div class="d-flex">
<button type="button" class="btn btn-outline-secondary" (click)="changePlan()" *ngIf="showChangePlanButton">
{{'changeBillingPlan' | i18n}}
</button>
</div>
<app-change-plan [organizationId]="organizationId" (onChanged)="closeChangePlan(true)"
(onCanceled)="closeChangePlan(false)" *ngIf="showChangePlan"></app-change-plan>
</ng-container>
<h2 class="spaced-header">{{'manageSubscription' | i18n}}</h2>
<p class="mb-4">{{subscriptionDesc}}</p>
<ng-container *ngIf="subscription && canAdjustSeats && !subscription.cancelled && !subscriptionMarkedForCancel">
@@ -118,8 +127,6 @@
<span>{{'cancelSubscription' | i18n}}</span>
</button>
</div>
<app-change-plan [organizationId]="organizationId" (onChanged)="closeChangePlan(true)"
(onCanceled)="closeChangePlan(false)" *ngIf="showChangePlan"></app-change-plan>
<div class="mt-3" *ngIf="showDownloadLicense">
<app-download-license [organizationId]="organizationId" (onDownloaded)="closeDownloadLicense()"
(onCanceled)="closeDownloadLicense()"></app-download-license>