mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-08 17:23:24 +00:00
Clarify auto-IP display in domain details by showing current IP address if available.
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/91ee7176-0c0f-4391-850c-1442ff09e9c5.jpg
This commit is contained in:
@@ -463,11 +463,21 @@ export function DomainDetails({ domain, onBack }: DomainDetailsProps) {
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<span className="truncate max-w-[150px] inline-block">
|
||||
{record.isAutoIP ? "Auto IP" : record.content}
|
||||
{record.isAutoIP
|
||||
? (record.currentIp
|
||||
? `Auto IP (${record.currentIp})`
|
||||
: "Auto IP")
|
||||
: record.content}
|
||||
</span>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
<p>{record.isAutoIP ? "Auto IP" : record.content}</p>
|
||||
<p>
|
||||
{record.isAutoIP
|
||||
? (record.currentIp
|
||||
? <>Auto IP - Current value: <strong>{record.currentIp}</strong></>
|
||||
: "Auto IP - Resolving current IP...")
|
||||
: record.content}
|
||||
</p>
|
||||
{record.notes && (
|
||||
<>
|
||||
<div className="border-t my-1"></div>
|
||||
|
||||
Reference in New Issue
Block a user