|
|
|
|
@ -7,9 +7,8 @@
@@ -7,9 +7,8 @@
|
|
|
|
|
</h1> |
|
|
|
|
</div> |
|
|
|
|
<app-premium *ngIf="!premium" (onPremiumPurchased)="load()"></app-premium> |
|
|
|
|
<ng-container *ngIf="premium"> |
|
|
|
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="!firstLoaded && loading"></i> |
|
|
|
|
<ng-container *ngIf="billing"> |
|
|
|
|
<i class="fa fa-spinner fa-spin text-muted" *ngIf="premium && !firstLoaded && loading"></i> |
|
|
|
|
<ng-container *ngIf="premium && billing"> |
|
|
|
|
<app-callout type="warning" title="{{'canceled' | i18n}}" *ngIf="subscription.cancelled">{{'subscriptionCanceled' | i18n}}</app-callout> |
|
|
|
|
<app-callout type="warning" title="{{'pendingCancellation' | i18n}}" *ngIf="subscriptionMarkedForCancel"> |
|
|
|
|
<p>{{'subscriptionPendingCanceled' | i18n}}</p> |
|
|
|
|
@ -19,7 +18,12 @@
@@ -19,7 +18,12 @@
|
|
|
|
|
<span>{{'reinstateSubscription' | i18n}}</span> |
|
|
|
|
</button> |
|
|
|
|
</app-callout> |
|
|
|
|
<div class="row"> |
|
|
|
|
<dl *ngIf="selfHosted"> |
|
|
|
|
<dt>{{'expiration' | i18n}}</dt> |
|
|
|
|
<dd *ngIf="billing.expiration">{{billing.expiration | date:'mediumDate'}}</dd> |
|
|
|
|
<dd *ngIf="!billing.expiration">{{'neverExpires' | i18n}}</dd> |
|
|
|
|
</dl> |
|
|
|
|
<div class="row" *ngIf="!selfHosted"> |
|
|
|
|
<div class="col-4"> |
|
|
|
|
<dl> |
|
|
|
|
<dt>{{'status' | i18n}}</dt> |
|
|
|
|
@ -28,8 +32,8 @@
@@ -28,8 +32,8 @@
|
|
|
|
|
<span class="badge badge-warning" *ngIf="subscriptionMarkedForCancel">{{'pendingCancellation' | i18n}}</span> |
|
|
|
|
</dd> |
|
|
|
|
<dt>{{'nextCharge' | i18n}}</dt> |
|
|
|
|
<dd>{{nextInvoice ? ((nextInvoice.date | date: 'mediumDate') + ', ' + (nextInvoice.amount | currency:'$')) |
|
|
|
|
: '-'}}</dd> |
|
|
|
|
<dd>{{nextInvoice ? ((nextInvoice.date | date: 'mediumDate') + ', ' + (nextInvoice.amount | currency:'$')) : |
|
|
|
|
'-'}}</dd> |
|
|
|
|
</dl> |
|
|
|
|
</div> |
|
|
|
|
<div class="col-8"> |
|
|
|
|
@ -48,9 +52,18 @@
@@ -48,9 +52,18 @@
|
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<ng-container *ngIf="selfHosted"> |
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="updateLicense()"> |
|
|
|
|
{{'updateLicense' | i18n}} |
|
|
|
|
</button> |
|
|
|
|
<a href="https://vault.bitwarden.com/#/settings/billing" target="_blank" rel="noopener" class="btn btn-outline-secondary"> |
|
|
|
|
{{'manageSubscription' | i18n}} |
|
|
|
|
</a> |
|
|
|
|
</ng-container> |
|
|
|
|
<ng-container *ngIf="!selfHosted"> |
|
|
|
|
<ng-container *ngIf="!subscription.cancelled || subscriptionMarkedForCancel"> |
|
|
|
|
<div class="d-flex"> |
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="license()" *ngIf="!subscription.cancelled"> |
|
|
|
|
<button type="button" class="btn btn-outline-secondary" (click)="downloadLicense()" *ngIf="!subscription.cancelled"> |
|
|
|
|
{{'downloadLicense' | i18n}} |
|
|
|
|
</button> |
|
|
|
|
<button #cancelBtn type="button" class="btn btn-outline-danger btn-submit ml-auto" (click)="cancel()" [appApiAction]="cancelPromise" |
|
|
|
|
@ -60,7 +73,6 @@
@@ -60,7 +73,6 @@
|
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</ng-container> |
|
|
|
|
<ng-container *ngIf="!selfHosted"> |
|
|
|
|
<h2 class="spaced-header">{{'storage' | i18n}}</h2> |
|
|
|
|
<p>{{'subscriptionStorage' | i18n : billing.maxStorageGb : billing.storageName || '0 MB'}}</p> |
|
|
|
|
<div class="progress"> |
|
|
|
|
@ -110,4 +122,3 @@
@@ -110,4 +122,3 @@
|
|
|
|
|
<small class="text-muted">* {{'chargesStatement' | i18n : 'BITWARDEN'}}</small> |
|
|
|
|
</ng-container> |
|
|
|
|
</ng-container> |
|
|
|
|
</ng-container> |
|
|
|
|
|