From 5cc1438e8b44e67f0681c10235a52ca69d1ab7da Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 25 Jul 2018 09:23:29 -0400 Subject: [PATCH] inOrgWithPremium after sync --- src/app/vault/vault.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index d9aa2a56f1..3a04b9509e 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -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();