mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: hide "last seen" when user is suspended (#16813)
Fixes: https://github.com/coder/coder/issues/14887
This commit is contained in:
@@ -176,7 +176,9 @@ export const UsersTableBody: FC<UsersTableBodyProps> = ({
|
||||
]}
|
||||
>
|
||||
<div>{user.status}</div>
|
||||
<LastSeen at={user.last_seen_at} css={{ fontSize: 12 }} />
|
||||
{(user.status === "active" || user.status === "dormant") && (
|
||||
<LastSeen at={user.last_seen_at} css={{ fontSize: 12 }} />
|
||||
)}
|
||||
</TableCell>
|
||||
|
||||
{canEditUsers && (
|
||||
|
||||
Reference in New Issue
Block a user