1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-03 00:20:35 +02:00

inOrgWithPremium after sync

This commit is contained in:
Kyle Spearrin 2018-07-25 09:23:29 -04:00
parent 6ee2f05fb7
commit 5cc1438e8b

View File

@ -82,8 +82,7 @@ export class VaultComponent implements OnInit {
const hasEncKey = await this.cryptoService.hasEncKey();
this.showUpdateKey = !hasEncKey;
const isPremium = await this.tokenService.getPremium();
this.showPremiumCallout = !this.showVerifyEmail && !isPremium &&
!this.platformUtilsService.isSelfHost() && !(await this.inOrgWithPremium());
this.showPremiumCallout = !this.showVerifyEmail && !isPremium && !this.platformUtilsService.isSelfHost();
this.route.queryParams.subscribe(async (params) => {
await this.syncService.fullSync(false);
@ -92,6 +91,10 @@ export class VaultComponent implements OnInit {
this.organizationsComponent.load(),
]);
if (this.showPremiumCallout) {
this.showPremiumCallout = !(await this.inOrgWithPremium());
}
if (params == null) {
this.groupingsComponent.selectedAll = true;
await this.ciphersComponent.load();