feat: add sorting, click-to-search, and restore access for suspended approvals
- Sortable columns in All Approvals table (click headers to toggle asc/desc) - Click any User/Device/Network/Status cell to populate search and filter - Restore Access option for suspended memberships via assign endpoint
This commit is contained in:
@@ -1584,6 +1584,12 @@ export const api = {
|
||||
{ method: "POST" }, true, requestConfig,
|
||||
),
|
||||
|
||||
assignAccess: (orgId: string, data: { target_user_id: string; portal_network_id: string; justification?: string }, requestConfig?: RequestConfig) =>
|
||||
request<{ approval: UserNetworkApproval }>(
|
||||
`/organizations/${orgId}/approvals/assign`,
|
||||
{ method: "POST", body: JSON.stringify(data) }, true, requestConfig,
|
||||
),
|
||||
|
||||
// ── Memberships ────────────────────────────────────────────────────────────
|
||||
listMemberships: (orgId: string, requestConfig?: RequestConfig) =>
|
||||
request<{ memberships: DeviceNetworkMembership[]; count: number }>(
|
||||
|
||||
Reference in New Issue
Block a user