feat: super admin badge — earliest admin shows 超级管理员 in user list
- /api/users: mark is_super for the earliest-registered admin (matches the auto-promotion migration semantics) - AdminUsers: render 超级管理员 badge for is_super, 管理员 otherwise - i18n keys admin.user.roleSuper (zh/en) - Mobile settings nav: active tab gets top-left/top-right rounded corners only (desktop unchanged)
This commit is contained in:
1 parent
f0867935ac
commit
d757bde780
5 files changed
+17
-4
No files matched your search
@@ -73,7 +73,7 @@ export default function AdminUsers() {
|
||||
display: 'inline-block', padding: '2px 10px', borderRadius: 4, fontSize: 12, fontWeight: 500,
|
||||
...(isAdmin ? { background: '#6366f1', color: '#fff' } : { background: 'var(--border)', color: 'var(--text-secondary)' }),
|
||||
}}>
|
||||
{isAdmin ? t('admin.user.roleAdmin') : t('admin.user.roleUser')}
|
||||
{isAdmin ? (u.is_super ? t('admin.user.roleSuper') : t('admin.user.roleAdmin')) : t('admin.user.roleUser')}
|
||||
</span>
|
||||
</td>
|
||||
<td style={{ padding: '10px 12px', color: '#94a3b8', fontSize: 13 }}>
|
||||
|
||||
Reference in new issue
Block a user