only show approved clients in the dashboard
This commit is contained in:
@@ -22,7 +22,7 @@ export function handleClientsRequest(req: Request): Response {
|
||||
const statusFilter = url.searchParams.get("status") || "all";
|
||||
const osFilter = url.searchParams.get("os") || "all";
|
||||
|
||||
const result = listClients({ page, pageSize, search, sort, statusFilter, osFilter });
|
||||
const result = listClients({ page, pageSize, search, sort, statusFilter, osFilter, enrollmentFilter: "approved" });
|
||||
const items = result.items.map((item) => {
|
||||
const live = clientManager.getClient(item.id);
|
||||
if (live?.monitorInfo?.length) {
|
||||
|
||||
Reference in New Issue
Block a user