1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-29 11:22:30 +01:00

showPremiumCallout always after sync

This commit is contained in:
Kyle Spearrin 2018-07-25 09:24:55 -04:00
parent 5cc1438e8b
commit 489c7934bf

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;