Skip to content

Commit 84de904

Browse files
authored
change: [UIE-8268] dbaas summary add tooltip for ipv6 to read-only host for new db clusters (linode#11291)
1 parent 8aa1545 commit 84de904

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Changed
3+
---
4+
5+
Tooltip for IPV6 should also be added to read-only host in dbaas summary ([#11291](https://github.com/linode/manager/pull/11291))

packages/manager/src/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryConnectionDetails.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => {
116116
const readOnlyHost = () => {
117117
const defaultValue = isLegacy ? '-' : 'N/A';
118118
const value = readOnlyHostValue ? readOnlyHostValue : defaultValue;
119-
const displayCopyTooltip = value !== '-' && value !== 'N/A';
119+
const hasHost = value !== '-' && value !== 'N/A';
120120
return (
121121
<>
122122
{value}
123-
{value && displayCopyTooltip && (
123+
{value && hasHost && (
124124
<CopyTooltip className={classes.inlineCopyToolTip} text={value} />
125125
)}
126126
{isLegacy && (
@@ -130,6 +130,14 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => {
130130
text={privateHostCopy}
131131
/>
132132
)}
133+
{!isLegacy && hasHost && (
134+
<TooltipIcon
135+
componentsProps={hostTooltipComponentProps}
136+
status="help"
137+
sxTooltipIcon={sxTooltipIcon}
138+
text={HOST_TOOLTIP_COPY}
139+
/>
140+
)}
133141
</>
134142
);
135143
};

0 commit comments

Comments
 (0)