diff --git a/client/src/components/domain/domain-details.tsx b/client/src/components/domain/domain-details.tsx index c43076f..aa9f493 100644 --- a/client/src/components/domain/domain-details.tsx +++ b/client/src/components/domain/domain-details.tsx @@ -61,7 +61,7 @@ import { } from "@/components/ui/tooltip"; import { RecentActivity } from "@/components/activity/recent-activity"; import { Pagination } from "@/components/shared/pagination"; -import { Loader2, FileText, Pencil, Trash2, Plus } from "lucide-react"; +import { Loader2, FileText, Pencil, Trash2, Plus, Copy } from "lucide-react"; import { formatDistanceToNow } from "date-fns"; // DNS Record form schema @@ -465,18 +465,14 @@ export function DomainDetails({ domain, onBack }: DomainDetailsProps) { {record.isAutoIP - ? (record.currentIp - ? `Auto IP (${record.currentIp})` - : "Auto IP") + ? "Auto-managed" : record.content}

{record.isAutoIP - ? (record.currentIp - ? <>Auto IP - Current value: {record.currentIp} - : "Auto IP - Resolving current IP...") + ? "Content automatically managed by AutoIP" : record.content}

{record.notes && ( @@ -489,6 +485,49 @@ export function DomainDetails({ domain, onBack }: DomainDetailsProps) { + + {record.isAutoIP ? ( +
+ + Enabled + + {record.currentIp && ( + + + + + + +

{record.currentIp}

+

Click to copy

+
+
+
+ )} +
+ ) : ( + + Disabled + + )} +
{record.ttl}s {record.lastUpdated