mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
org change plan, cancel, reinstate actions
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 4be7c6aa4c...9c0b4b8973
@@ -77,9 +77,9 @@ export class OrganizationBillingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.reinstatePromise = this.apiService.postReinstatePremium();
|
this.reinstatePromise = this.apiService.postOrganizationReinstate(this.organizationId);
|
||||||
await this.reinstatePromise;
|
await this.reinstatePromise;
|
||||||
this.analytics.eventTrack.next({ action: 'Reinstated Premium' });
|
this.analytics.eventTrack.next({ action: 'Reinstated Plan' });
|
||||||
this.toasterService.popAsync('success', null, this.i18nService.t('reinstated'));
|
this.toasterService.popAsync('success', null, this.i18nService.t('reinstated'));
|
||||||
this.load();
|
this.load();
|
||||||
} catch { }
|
} catch { }
|
||||||
@@ -97,14 +97,22 @@ export class OrganizationBillingComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.cancelPromise = this.apiService.postCancelPremium();
|
this.cancelPromise = this.apiService.postOrganizationCancel(this.organizationId);
|
||||||
await this.cancelPromise;
|
await this.cancelPromise;
|
||||||
this.analytics.eventTrack.next({ action: 'Canceled Premium' });
|
this.analytics.eventTrack.next({ action: 'Canceled Plan' });
|
||||||
this.toasterService.popAsync('success', null, this.i18nService.t('canceledSubscription'));
|
this.toasterService.popAsync('success', null, this.i18nService.t('canceledSubscription'));
|
||||||
this.load();
|
this.load();
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async changePlan() {
|
||||||
|
const contactSupport = await this.platformUtilsService.showDialog(this.i18nService.t('changeBillingPlanDesc'),
|
||||||
|
this.i18nService.t('changeBillingPlan'), this.i18nService.t('contactSupport'), this.i18nService.t('close'));
|
||||||
|
if (contactSupport) {
|
||||||
|
this.platformUtilsService.launchUri('https://bitwarden.com/contact');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
downloadLicense() {
|
downloadLicense() {
|
||||||
if (this.loading) {
|
if (this.loading) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -2179,6 +2179,10 @@
|
|||||||
"message": "Change Plan",
|
"message": "Change Plan",
|
||||||
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
|
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
|
||||||
},
|
},
|
||||||
|
"changeBillingPlanDesc": {
|
||||||
|
"message": "Contact customer support if you would like to change your plan. Please ensure that you have an active payment method added to the account.",
|
||||||
|
"description": "A billing plan/package. For example: families, teams, enterprise, etc."
|
||||||
|
},
|
||||||
"invoice": {
|
"invoice": {
|
||||||
"message": "Invoice"
|
"message": "Invoice"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user