diff --git a/packages/manager/.changeset/pr-11291-changed-1732048644474.md b/packages/manager/.changeset/pr-11291-changed-1732048644474.md new file mode 100644 index 00000000000..5130132f896 --- /dev/null +++ b/packages/manager/.changeset/pr-11291-changed-1732048644474.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Changed +--- + +Tooltip for IPV6 should also be added to read-only host in dbaas summary ([#11291](https://github.com/linode/manager/pull/11291)) diff --git a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx index 2d9611e280a..e3943379c98 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx @@ -116,11 +116,11 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => { const readOnlyHost = () => { const defaultValue = isLegacy ? '-' : 'N/A'; const value = readOnlyHostValue ? readOnlyHostValue : defaultValue; - const displayCopyTooltip = value !== '-' && value !== 'N/A'; + const hasHost = value !== '-' && value !== 'N/A'; return ( <> {value} - {value && displayCopyTooltip && ( + {value && hasHost && ( )} {isLegacy && ( @@ -130,6 +130,14 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => { text={privateHostCopy} /> )} + {!isLegacy && hasHost && ( + + )} ); };