feat: replace Activate All with Deactivate All button and remove Assign Access modal

This commit is contained in:
2026-05-30 06:34:20 +00:00
parent ff2beae9d0
commit 087b8f002f
3 changed files with 32 additions and 127 deletions
+7 -11
View File
@@ -1584,17 +1584,6 @@ 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 }>(
@@ -1694,6 +1683,13 @@ export const api = {
true, requestConfig,
),
networkKillSwitch: (orgId: string, networkId: string, data?: { reason?: string }, requestConfig?: RequestConfig) =>
request<{ message: string; count: number }>(
`/organizations/${orgId}/networks/${networkId}/kill-switch`,
{ method: "POST", body: data ? JSON.stringify(data) : "{}" },
true, requestConfig,
),
// ── ZeroTier Controller (org-scoped admin) ─────────────────────────────────
getZtStatus: (orgId: string, requestConfig?: RequestConfig) =>
request<{ status: Record<string, unknown> }>(