1
0
mirror of https://github.com/bitwarden/web synced 2026-01-02 08:33:18 +00:00

self host builds

This commit is contained in:
Kyle Spearrin
2018-06-30 14:14:52 -04:00
parent d509637623
commit c5d575b9b6
6 changed files with 123 additions and 92 deletions

View File

@@ -15,8 +15,6 @@ 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',
@@ -30,13 +28,16 @@ export class UserBillingComponent implements OnInit {
showAdjustPayment = false;
billing: BillingResponse;
paymentMethodType = PaymentMethodType;
selfHosted = false;
cancelPromise: Promise<any>;
reinstatePromise: Promise<any>;
constructor(private tokenService: TokenService, private apiService: ApiService,
private platformUtilsService: PlatformUtilsService, private i18nService: I18nService,
private analytics: Angulartics2, private toasterService: ToasterService) { }
private analytics: Angulartics2, private toasterService: ToasterService) {
this.selfHosted = platformUtilsService.isSelfHost();
}
async ngOnInit() {
await this.load();
@@ -96,7 +97,7 @@ export class UserBillingComponent implements OnInit {
} catch { }
}
license() {
downloadLicense() {
if (this.loading) {
return;
}
@@ -105,6 +106,12 @@ export class UserBillingComponent implements OnInit {
this.platformUtilsService.saveFile(window, licenseString, null, 'bitwarden_premium_license.json');
}
updateLicense() {
if (this.loading) {
return;
}
}
adjustStorage(add: boolean) {
this.adjustStorageAdd = add;
this.showAdjustStorage = true;