1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 19:43:45 +00:00

dont show billing page on self host

This commit is contained in:
Kyle Spearrin
2019-02-18 16:10:32 -05:00
parent 92b2601ba2
commit 8305b49046
4 changed files with 11 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import {
OnInit,
} from '@angular/core';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { TokenService } from 'jslib/abstractions/token.service';
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
@@ -17,9 +18,10 @@ const BroadcasterSubscriptionId = 'SettingsComponent';
})
export class SettingsComponent implements OnInit, OnDestroy {
premium: boolean;
selfHosted: boolean;
constructor(private tokenService: TokenService, private broadcasterService: BroadcasterService,
private ngZone: NgZone) { }
private ngZone: NgZone, private platformUtilsService: PlatformUtilsService) { }
async ngOnInit() {
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
@@ -33,6 +35,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
});
});
this.selfHosted = await this.platformUtilsService.isSelfHost();
await this.load();
}