Skip to content

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/user): comment out user role for now

haitao(lj)90ef591cb52c
diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsx
index 89b92bd4..3e7ef853 100644
--- a/ui/src/pages/Admin/Users/index.tsx
+++ b/ui/src/pages/Admin/Users/index.tsx
@@ -22,7 +22,7 @@ import '../index.scss';
const UserFilterKeys: Type.UserFilterBy[] = [
'all',
- 'staff',
+ // 'staff',
'inactive',
'suspended',
'deleted',
@@ -131,7 +131,7 @@ const Users: FC = () => {
)}
<th style={{ width: '12%' }}>{t('status')}</th>
- <th style={{ width: '12%' }}>{t('role')}</th>
+ {/* <th style={{ width: '12%' }}>{t('role')}</th> */}
{curFilter !== 'deleted' ? (
<th style={{ width: '8%' }} className="text-end">
{t('action')}
@@ -173,11 +173,11 @@ const Users: FC = () => {
{t(user.status)}
</span>
</td>
- <td>
- <span className="badge text-bg-light">
- {t(user.role_name)}
- </span>
- </td>
+ {/* <td> */}
+ {/* <span className="badge text-bg-light"> */}
+ {/* {t(user.role_name)} */}
+ {/* </span> */}
+ {/* </td> */}
{curFilter !== 'deleted' ? (
<td className="text-end">
<Dropdown>
@@ -190,10 +190,10 @@ const Users: FC = () => {
onClick={() => handleAction('status', user)}>
{t('change_status')}
</Dropdown.Item>
- <Dropdown.Item
- onClick={() => handleAction('role', user)}>
- {t('change_role')}
- </Dropdown.Item>
+ {/* <Dropdown.Item */}
+ {/* onClick={() => handleAction('role', user)}> */}
+ {/* {t('change_role')} */}
+ {/* </Dropdown.Item> */}
{/* <Dropdown.Divider />
<Dropdown.Item>{t('show_logs')}</Dropdown.Item> */}
</Dropdown.Menu>