feat: show device name instead of UUID in ZeroTier All Approvals table
This commit is contained in:
@@ -2117,6 +2117,8 @@ export interface UserNetworkApproval {
|
|||||||
user_email: string | null;
|
user_email: string | null;
|
||||||
portal_network_id: string;
|
portal_network_id: string;
|
||||||
device_id?: string;
|
device_id?: string;
|
||||||
|
device_name?: string | null;
|
||||||
|
device_nickname?: string | null;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
active_session?: ActivationSession | null;
|
active_session?: ActivationSession | null;
|
||||||
join_seen?: boolean;
|
join_seen?: boolean;
|
||||||
|
|||||||
@@ -678,7 +678,14 @@ export default function AccessPage() {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="p-3">
|
<td className="p-3">
|
||||||
{approval.device_id ? (
|
{approval.device_name || approval.device_nickname ? (
|
||||||
|
<div>
|
||||||
|
<p className="text-sm font-medium truncate max-w-[160px]">{approval.device_name || approval.device_nickname}</p>
|
||||||
|
{approval.device_nickname && approval.device_name !== approval.device_nickname && (
|
||||||
|
<p className="text-xs text-muted-foreground font-mono truncate max-w-[160px]">{approval.device_id}</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
) : approval.device_id ? (
|
||||||
<span className="font-mono text-xs">{approval.device_id}</span>
|
<span className="font-mono text-xs">{approval.device_id}</span>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-xs text-muted-foreground">—</span>
|
<span className="text-xs text-muted-foreground">—</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user