From f2b30f3d54fee3172fff1eb33a0946aeca8f1b6e Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Fri, 11 Apr 2025 15:46:27 +0000 Subject: [PATCH] Add copy IP button to domain details 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/eea8af3c-4b4c-47c8-9c7b-2c74fd45c59b.jpg --- .../src/components/domain/domain-details.tsx | 115 +++++++++--------- 1 file changed, 56 insertions(+), 59 deletions(-) diff --git a/client/src/components/domain/domain-details.tsx b/client/src/components/domain/domain-details.tsx index aa9f493..24bde62 100644 --- a/client/src/components/domain/domain-details.tsx +++ b/client/src/components/domain/domain-details.tsx @@ -460,68 +460,65 @@ export function DomainDetails({ domain, onBack }: DomainDetailsProps) { {record.type} - - - - - {record.isAutoIP - ? "Auto-managed" - : record.content} - - - -

- {record.isAutoIP - ? "Content automatically managed by AutoIP" - : record.content} -

- {record.notes && ( - <> -
-

{record.notes}

- - )} -
-
-
+ {record.isAutoIP ? ( + record.currentIp ? ( + + + + + + +

{record.currentIp}

+

Click to copy

+
+
+
+ ) : ( + Resolving IP... + ) + ) : ( + + + + + {record.content} + + + +

{record.content}

+ {record.notes && ( + <> +
+

{record.notes}

+ + )} +
+
+
+ )}
{record.isAutoIP ? ( -
- - Enabled - - {record.currentIp && ( - - - - - - -

{record.currentIp}

-

Click to copy

-
-
-
- )} -
+ + Enabled + ) : ( Disabled