mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +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>
|
||||
|
||||
+4
-1
@@ -317,7 +317,10 @@ export type InsertDomain = z.infer<typeof insertDomainSchema>;
|
||||
export type Domain = typeof domains.$inferSelect;
|
||||
|
||||
export type InsertDnsRecord = z.infer<typeof insertDnsRecordSchema>;
|
||||
export type DnsRecord = typeof dnsRecords.$inferSelect;
|
||||
export type DnsRecord = typeof dnsRecords.$inferSelect & {
|
||||
// Runtime property added by the API - not stored in database
|
||||
currentIp?: string;
|
||||
};
|
||||
|
||||
export type InsertProvider = z.infer<typeof insertProviderSchema>;
|
||||
export type Provider = typeof providers.$inferSelect;
|
||||
|
||||
Reference in New Issue
Block a user