showPremiumCallout always after sync
This commit is contained in:
parent
5cc1438e8b
commit
489c7934bf
|
@ -82,7 +82,7 @@ export class VaultComponent implements OnInit {
|
||||||
const hasEncKey = await this.cryptoService.hasEncKey();
|
const hasEncKey = await this.cryptoService.hasEncKey();
|
||||||
this.showUpdateKey = !hasEncKey;
|
this.showUpdateKey = !hasEncKey;
|
||||||
const isPremium = await this.tokenService.getPremium();
|
const isPremium = await this.tokenService.getPremium();
|
||||||
this.showPremiumCallout = !this.showVerifyEmail && !isPremium && !this.platformUtilsService.isSelfHost();
|
this.showPremiumCallout = ;
|
||||||
|
|
||||||
this.route.queryParams.subscribe(async (params) => {
|
this.route.queryParams.subscribe(async (params) => {
|
||||||
await this.syncService.fullSync(false);
|
await this.syncService.fullSync(false);
|
||||||
|
@ -91,9 +91,8 @@ export class VaultComponent implements OnInit {
|
||||||
this.organizationsComponent.load(),
|
this.organizationsComponent.load(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (this.showPremiumCallout) {
|
this.showPremiumCallout = !this.showVerifyEmail && !isPremium &&
|
||||||
this.showPremiumCallout = !(await this.inOrgWithPremium());
|
!this.platformUtilsService.isSelfHost() && !(await this.inOrgWithPremium());
|
||||||
}
|
|
||||||
|
|
||||||
if (params == null) {
|
if (params == null) {
|
||||||
this.groupingsComponent.selectedAll = true;
|
this.groupingsComponent.selectedAll = true;
|
||||||
|
|
Loading…
Reference in New Issue