mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
inOrgWithPremium after sync
This commit is contained in:
parent
6ee2f05fb7
commit
5cc1438e8b
@ -82,8 +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.showPremiumCallout = !this.showVerifyEmail && !isPremium && !this.platformUtilsService.isSelfHost();
|
||||||
!this.platformUtilsService.isSelfHost() && !(await this.inOrgWithPremium());
|
|
||||||
|
|
||||||
this.route.queryParams.subscribe(async (params) => {
|
this.route.queryParams.subscribe(async (params) => {
|
||||||
await this.syncService.fullSync(false);
|
await this.syncService.fullSync(false);
|
||||||
@ -92,6 +91,10 @@ export class VaultComponent implements OnInit {
|
|||||||
this.organizationsComponent.load(),
|
this.organizationsComponent.load(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (this.showPremiumCallout) {
|
||||||
|
this.showPremiumCallout = !(await this.inOrgWithPremium());
|
||||||
|
}
|
||||||
|
|
||||||
if (params == null) {
|
if (params == null) {
|
||||||
this.groupingsComponent.selectedAll = true;
|
this.groupingsComponent.selectedAll = true;
|
||||||
await this.ciphersComponent.load();
|
await this.ciphersComponent.load();
|
||||||
|
Loading…
Reference in New Issue
Block a user