mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
[PM-24412] Make billing api service call in members component non blocking (#16103)
* refactor organization to signal, unblock loading due to api call * continue refactor WIP * clean up * refactor billingMetadata signal to observble * deffer billing call * refactor billingMetadata * cleanup, add comment * qa bug: add missing param
This commit is contained in:
@@ -13,7 +13,7 @@ const MaxCheckedCount = 500;
|
||||
/**
|
||||
* Returns true if the user matches the status, or where the status is `null`, if the user is active (not revoked).
|
||||
*/
|
||||
function statusFilter(user: UserViewTypes, status: StatusType) {
|
||||
function statusFilter(user: UserViewTypes, status?: StatusType) {
|
||||
if (status == null) {
|
||||
return user.status != OrganizationUserStatusType.Revoked;
|
||||
}
|
||||
@@ -35,7 +35,7 @@ function textFilter(user: UserViewTypes, text: string) {
|
||||
);
|
||||
}
|
||||
|
||||
export function peopleFilter(searchText: string, status: StatusType) {
|
||||
export function peopleFilter(searchText: string, status?: StatusType) {
|
||||
return (user: UserViewTypes) => statusFilter(user, status) && textFilter(user, searchText);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user