1
0
mirror of https://github.com/bitwarden/web synced 2026-01-08 19:44:08 +00:00

limit sub and billing actions when using iap

This commit is contained in:
Kyle Spearrin
2019-09-19 16:34:44 -04:00
parent 6cb48c186e
commit 89708d1fd6
4 changed files with 29 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ export class UserBillingComponent implements OnInit {
addCredit() {
if (this.paymentSourceInApp) {
this.platformUtilsService.showDialog(this.i18nService.t('cannotPerformInAppPurchase'));
this.platformUtilsService.showDialog(this.i18nService.t('cannotPerformInAppPurchase'),
this.i18nService.t('addCredit'), null, null, 'warning');
return;
}
this.showAddCredit = true;
@@ -90,7 +91,8 @@ export class UserBillingComponent implements OnInit {
changePayment() {
if (this.paymentSourceInApp) {
this.platformUtilsService.showDialog(this.i18nService.t('cannotPerformInAppPurchase'));
this.platformUtilsService.showDialog(this.i18nService.t('cannotPerformInAppPurchase'),
this.i18nService.t('changePaymentMethod'), null, null, 'warning');
return;
}
this.showAdjustPayment = true;