1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-02 16:43:19 +00:00

sub out change plan component

This commit is contained in:
Kyle Spearrin
2019-03-20 10:11:51 -04:00
parent 65a20815bf
commit f6fcb280fc
5 changed files with 62 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ export class OrganizationSubscriptionComponent implements OnInit {
showAdjustStorage = false;
showUpdateLicense = false;
showDownloadLicense = false;
showChangePlan = false;
sub: OrganizationSubscriptionResponse;
selfHosted = false;
@@ -102,6 +103,10 @@ export class OrganizationSubscriptionComponent implements OnInit {
}
async changePlan() {
if (this.subscription == null) {
this.showChangePlan = !this.showChangePlan;
return;
}
const contactSupport = await this.platformUtilsService.showDialog(this.i18nService.t('changeBillingPlanDesc'),
this.i18nService.t('changeBillingPlan'), this.i18nService.t('contactSupport'), this.i18nService.t('close'));
if (contactSupport) {
@@ -109,6 +114,10 @@ export class OrganizationSubscriptionComponent implements OnInit {
}
}
closeChangePlan(changed: boolean) {
this.showChangePlan = false;
}
downloadLicense() {
this.showDownloadLicense = !this.showDownloadLicense;
}