showPremiumCallout always after sync

This commit is contained in:
Kyle Spearrin 2018-07-25 09:24:55 -04:00
parent 5cc1438e8b
commit 489c7934bf
1 changed files with 3 additions and 4 deletions

View File

@ -82,7 +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();
this.showPremiumCallout = ;
this.route.queryParams.subscribe(async (params) => {
await this.syncService.fullSync(false);
@ -91,9 +91,8 @@ export class VaultComponent implements OnInit {
this.organizationsComponent.load(),
]);
if (this.showPremiumCallout) {
this.showPremiumCallout = !(await this.inOrgWithPremium());
}
this.showPremiumCallout = !this.showVerifyEmail && !isPremium &&
!this.platformUtilsService.isSelfHost() && !(await this.inOrgWithPremium());
if (params == null) {
this.groupingsComponent.selectedAll = true;