mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-11 00:31:45 +01:00
Remove F4E vault card (#1413)
* Remove F4E card from vault page * Remove unneeded property
This commit is contained in:
parent
2ae98887b7
commit
1a219daa12
@ -114,17 +114,6 @@
|
|||||||
<app-organizations [vault]="true"></app-organizations>
|
<app-organizations [vault]="true"></app-organizations>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card border-success mb-4" *ngIf="showRedeemSponsorship">
|
|
||||||
<div class="card-header bg-success text-white">
|
|
||||||
{{ "freeFamiliesPlan" | i18n }}
|
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
<p>{{ "sponsoredFamiliesEligible" | i18n }}</p>
|
|
||||||
<a class="btn btn-block btn-outline-secondary" routerLink="/settings/sponsored-families">
|
|
||||||
{{ "redeemNow" | i18n }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card mt-4" *ngIf="showProviders">
|
<div class="card mt-4" *ngIf="showProviders">
|
||||||
<div class="card-header d-flex">
|
<div class="card-header d-flex">
|
||||||
{{ "providers" | i18n }}
|
{{ "providers" | i18n }}
|
||||||
|
@ -69,7 +69,6 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
showBrowserOutdated = false;
|
showBrowserOutdated = false;
|
||||||
showUpdateKey = false;
|
showUpdateKey = false;
|
||||||
showPremiumCallout = false;
|
showPremiumCallout = false;
|
||||||
showRedeemSponsorship = false;
|
|
||||||
showProviders = false;
|
showProviders = false;
|
||||||
deleted: boolean = false;
|
deleted: boolean = false;
|
||||||
trashCleanupWarning: string = null;
|
trashCleanupWarning: string = null;
|
||||||
@ -110,11 +109,6 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
this.showProviders = (await this.providerService.getAll()).length > 0;
|
this.showProviders = (await this.providerService.getAll()).length > 0;
|
||||||
|
|
||||||
const allOrgs = await this.organizationService.getAll();
|
|
||||||
this.showRedeemSponsorship =
|
|
||||||
allOrgs.some((o) => o.familySponsorshipAvailable) &&
|
|
||||||
!allOrgs.some((o) => o.familySponsorshipFriendlyName != null);
|
|
||||||
|
|
||||||
await Promise.all([this.groupingsComponent.load(), this.organizationsComponent.load()]);
|
await Promise.all([this.groupingsComponent.load(), this.organizationsComponent.load()]);
|
||||||
this.showUpdateKey = !(await this.cryptoService.hasEncKey());
|
this.showUpdateKey = !(await this.cryptoService.hasEncKey());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user