A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(admin/users): Make table columns more compatible with filter conditions
haitao(lj)39f749918ea2
diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsxindex 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 = () => {)}<th style={{ width: '12%' }}>{t('status')}</th>- <th style={{ width: '12%' }}>{t('role')}</th>+ {curFilter !== 'suspended' && curFilter !== 'deleted' && (+ <th style={{ width: '12%' }}>{t('role')}</th>+ )}{curFilter !== 'deleted' ? (<th style={{ width: '8%' }} className="text-end">{t('action')}@@ -172,11 +174,13 @@ const Users: FC = () => {{t(user.status)}</span></td>- <td>- <span className="badge text-bg-light">- {t(user.role_name)}- </span>- </td>+ {curFilter !== 'suspended' && curFilter !== 'deleted' && (+ <td>+ <span className="badge text-bg-light">+ {t(user.role_name)}+ </span>+ </td>+ )}{curFilter !== 'deleted' ? (<td className="text-end"><Dropdown>