1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

changes to sponsorship is showing in individual vault (#14627)

This commit is contained in:
cyprain-okeke
2025-05-12 18:20:56 +01:00
committed by GitHub
parent 355bddc6c9
commit a10b9530af
5 changed files with 12 additions and 3 deletions

View File

@@ -112,13 +112,15 @@ export class SponsoredFamiliesComponent implements OnInit, OnDestroy {
});
}
});
this.anyOrgsAvailable$ = this.availableSponsorshipOrgs$.pipe(map((orgs) => orgs.length > 0));
this.activeSponsorshipOrgs$ = this.organizationService
.organizations$(userId)
.pipe(map((orgs) => orgs.filter((o) => o.familySponsorshipFriendlyName !== null)));
.pipe(
map((orgs) =>
orgs.filter((o) => o.familySponsorshipFriendlyName !== null && !o.isAdminInitiated),
),
);
this.anyActiveSponsorships$ = this.activeSponsorshipOrgs$.pipe(map((orgs) => orgs.length > 0));
this.loading = false;