mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 02:43:04 +01:00
tweaks to restore
This commit is contained in:
parent
5baea84a6a
commit
12edd8dcdb
@ -55,9 +55,9 @@
|
||||
[disabled]="purchaseBtn.loading" [appApiAction]="purchasePromise">
|
||||
<b>{{'premiumPurchase' | i18n}}</b>
|
||||
</button>
|
||||
<button #restoreBtn type="button" class="primary" appBlurClick (click)="restore()"
|
||||
*ngIf="canRestorePurchase" [disabled]="restoreBtn.loading" [appApiAction]="restorePromise">
|
||||
<b>{{'premiumRestore' | i18n}}</b>
|
||||
<button #restoreBtn type="button" appBlurClick (click)="restore()" *ngIf="canRestorePurchase"
|
||||
[disabled]="restoreBtn.loading" [appApiAction]="restorePromise">
|
||||
{{'restore' | i18n}}
|
||||
</button>
|
||||
<button type="button" data-dismiss="modal">{{'close' | i18n}}</button>
|
||||
<div class="right" *ngIf="!isPremium">
|
||||
|
@ -75,7 +75,9 @@ export class PremiumComponent extends BasePremiumComponent {
|
||||
// tslint:disable-next-line
|
||||
console.log(`Failed to purchase ${payment.productIdentifier}. ` +
|
||||
`${transaction.errorCode} = ${transaction.errorMessage}`);
|
||||
if (transaction.errorCode !== 2) {
|
||||
this.platformUtilsService.showToast('error', null, transaction.errorMessage);
|
||||
}
|
||||
// Finish the transaction.
|
||||
remote.inAppPurchase.finishTransactionByDate(transaction.transactionDate);
|
||||
break;
|
||||
|
@ -983,9 +983,6 @@
|
||||
"premiumPurchase": {
|
||||
"message": "Purchase Premium"
|
||||
},
|
||||
"premiumRestore": {
|
||||
"message": "Restore Premium"
|
||||
},
|
||||
"premiumPurchaseAlert": {
|
||||
"message": "You can purchase premium membership on the bitwarden.com web vault. Do you want to visit the website now?"
|
||||
},
|
||||
@ -1254,5 +1251,8 @@
|
||||
},
|
||||
"premiumUpdated": {
|
||||
"message": "You've upgraded to premium."
|
||||
},
|
||||
"restore": {
|
||||
"message": "Restore"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user