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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user