1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 02:33:46 +00:00

adjust storage implementation

This commit is contained in:
Kyle Spearrin
2018-06-29 23:41:35 -04:00
parent f7b9416460
commit 37026e556f
7 changed files with 133 additions and 7 deletions

View File

@@ -15,6 +15,8 @@ import { TokenService } from 'jslib/abstractions/token.service';
import { PaymentMethodType } from 'jslib/enums/paymentMethodType';
import { AdjustStorageComponent } from './adjust-storage.component';
@Component({
selector: 'app-user-billing',
templateUrl: 'user-billing.component.html',
@@ -23,6 +25,8 @@ export class UserBillingComponent implements OnInit {
premium = false;
loading = false;
firstLoaded = false;
adjustStorageAdd = true;
showAdjustStorage = false;
billing: BillingResponse;
paymentMethodType = PaymentMethodType;
@@ -101,7 +105,17 @@ export class UserBillingComponent implements OnInit {
}
adjustStorage(add: boolean) {
this.adjustStorageAdd = add;
this.showAdjustStorage = true;
}
adjustedStorage(gbAmount: number) {
this.showAdjustStorage = false;
this.load();
}
canceledAdjustStorage() {
this.showAdjustStorage = false;
}
changePayment() {