mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
feat: add login type to users page (#8912)
This commit is contained in:
@@ -15,6 +15,7 @@ export const Language = {
|
||||
rolesLabel: "Roles",
|
||||
statusLabel: "Status",
|
||||
lastSeenLabel: "Last Seen",
|
||||
loginTypeLabel: "Login Type",
|
||||
}
|
||||
|
||||
export interface UsersTableProps {
|
||||
@@ -69,8 +70,9 @@ export const UsersTable: FC<React.PropsWithChildren<UsersTableProps>> = ({
|
||||
<UserRoleHelpTooltip />
|
||||
</Stack>
|
||||
</TableCell>
|
||||
<TableCell width="15%">{Language.statusLabel}</TableCell>
|
||||
<TableCell width="15%">{Language.lastSeenLabel}</TableCell>
|
||||
<TableCell width="10%">{Language.loginTypeLabel}</TableCell>
|
||||
<TableCell width="10%">{Language.statusLabel}</TableCell>
|
||||
<TableCell width="10%">{Language.lastSeenLabel}</TableCell>
|
||||
|
||||
{/* 1% is a trick to make the table cell width fit the content */}
|
||||
{canEditUsers && <TableCell width="1%" />}
|
||||
|
||||
@@ -155,6 +155,9 @@ export const UsersTableBody: FC<
|
||||
))}
|
||||
</Stack>
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<pre>{user.login_type}</pre>
|
||||
</TableCell>
|
||||
<TableCell
|
||||
className={combineClasses([
|
||||
styles.status,
|
||||
|
||||
Reference in New Issue
Block a user