1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-07 19:13:39 +00:00

org disabled and license expired warnings

This commit is contained in:
Kyle Spearrin
2018-08-01 16:51:25 -04:00
parent 12bdd87705
commit 6ed80eb6c9
7 changed files with 36 additions and 3 deletions

View File

@@ -21,7 +21,13 @@
<dt>{{'billingPlan' | i18n}}</dt>
<dd>{{billing.plan}}</dd>
<dt>{{'expiration' | i18n}}</dt>
<dd *ngIf="billing.expiration">{{billing.expiration | date:'mediumDate'}}</dd>
<dd *ngIf="billing.expiration">
{{billing.expiration | date:'mediumDate'}}
<span *ngIf="isExpired" class="text-danger ml-2">
<i class="fa fa-exclamation-triangle"></i>
{{'licenseIsExpired' | i18n}}
</span>
</dd>
<dd *ngIf="!billing.expiration">{{'neverExpires' | i18n}}</dd>
</dl>
<div class="row" *ngIf="!selfHosted">

View File

@@ -208,6 +208,10 @@ export class OrganizationBillingComponent implements OnInit {
this.platformUtilsService.launchUri(url);
}
get isExpired() {
return this.billing != null && this.billing.expiration != null && this.billing.expiration < new Date();
}
get subscriptionMarkedForCancel() {
return this.subscription != null && !this.subscription.cancelled && this.subscription.cancelAtEndDate;
}