feat(admin, i18n): implement user deletion functionality and enhance permission management translations
Added a new API function to delete admin users, improving user management capabilities. Updated the admin permission package selector to include new permission levels for nodes, roles, and users. Enhanced multi-language support by adding translations for these new permission levels in English, Nepali, and Chinese. Additionally, improved the agents console to handle deletion confirmations and display relevant block reasons, ensuring a smoother user experience.
This commit is contained in:
@@ -94,6 +94,14 @@ export async function putAgentAdminUserRoles(
|
||||
);
|
||||
}
|
||||
|
||||
export async function deleteAgentAdminUser(
|
||||
adminUserId: number,
|
||||
): Promise<{ deleted: boolean; id: number }> {
|
||||
return adminRequest.delete<{ deleted: boolean; id: number }>(
|
||||
`${A}/agent-admin-users/${adminUserId}`,
|
||||
);
|
||||
}
|
||||
|
||||
export async function getAgentDelegationGrants(
|
||||
agentNodeId: number,
|
||||
): Promise<AgentDelegationGrantsData> {
|
||||
|
||||
Reference in New Issue
Block a user