From 39f749918ea2741d04ec5c220ae717aa031f70a8 Mon Sep 17 00:00:00 2001 From: "haitao(lj)" Date: Thu, 8 Dec 2022 10:26:17 +0800 Subject: [PATCH] fix(admin/users): Make table columns more compatible with filter conditions --- ui/src/pages/Admin/Users/index.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsx index b425f49e..7cdc3e06 100644 --- a/ui/src/pages/Admin/Users/index.tsx +++ b/ui/src/pages/Admin/Users/index.tsx @@ -130,7 +130,9 @@ const Users: FC = () => { )} {t('status')} - {t('role')} + {curFilter !== 'suspended' && curFilter !== 'deleted' && ( + {t('role')} + )} {curFilter !== 'deleted' ? ( {t('action')} @@ -172,11 +174,13 @@ const Users: FC = () => { {t(user.status)} - - - {t(user.role_name)} - - + {curFilter !== 'suspended' && curFilter !== 'deleted' && ( + + + {t(user.role_name)} + + + )} {curFilter !== 'deleted' ? (