feat: replace Activate All with Deactivate All button and remove Assign Access modal
This commit is contained in:
+7
-11
@@ -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> }>(
|
||||
|
||||
Reference in New Issue
Block a user