mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-16 20:57:21 +08:00
Feat: Admin UI whitelist management and role management (#10910)
### What problem does this PR solve? Add whitelist management and role management in Admin UI ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -84,7 +84,6 @@ import {
|
||||
updateUserPassword,
|
||||
updateUserRole,
|
||||
updateUserStatus,
|
||||
type AdminService,
|
||||
} from '@/services/admin-service';
|
||||
|
||||
import {
|
||||
@@ -130,7 +129,7 @@ function AdminUserManagement() {
|
||||
retry: false,
|
||||
});
|
||||
|
||||
const { data: usersList, isPending } = useQuery({
|
||||
const { data: usersList } = useQuery({
|
||||
queryKey: ['admin/listUsers'],
|
||||
queryFn: async () => (await listUsers()).data.data,
|
||||
retry: false,
|
||||
@@ -341,13 +340,7 @@ function AdminUserManagement() {
|
||||
),
|
||||
}),
|
||||
],
|
||||
[
|
||||
roleList,
|
||||
t,
|
||||
navigate,
|
||||
updateUserStatusMutation.isPending,
|
||||
updateUserRoleMutation.isPending,
|
||||
],
|
||||
[t, updateUserRoleMutation, roleList, updateUserStatusMutation, navigate],
|
||||
);
|
||||
|
||||
const table = useReactTable({
|
||||
@@ -364,7 +357,7 @@ function AdminUserManagement() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card className="h-full border border-border-button bg-transparent rounded-xl overflow-x-hidden overflow-y-auto">
|
||||
<Card className="!shadow-none h-full border border-border-button bg-transparent rounded-xl overflow-x-hidden overflow-y-auto">
|
||||
<ScrollArea className="size-full">
|
||||
<CardHeader className="space-y-0 flex flex-row justify-between items-center">
|
||||
<CardTitle>{t('admin.userManagement')}</CardTitle>
|
||||
|
||||
Reference in New Issue
Block a user