Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: [UIE-8268] dbaas summary add tooltip for ipv6 to read-only host for new db clusters #11291

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
<CopyTooltip className={classes.inlineCopyToolTip} text={value} />
)}
{isLegacy && (
Expand All @@ -130,6 +130,14 @@ export const DatabaseSummaryConnectionDetails = (props: Props) => {
text={privateHostCopy}
/>
)}
{!isLegacy && hasHost && (
<TooltipIcon
componentsProps={hostTooltipComponentProps}
status="help"
sxTooltipIcon={sxTooltipIcon}
text={HOST_TOOLTIP_COPY}
/>
)}
</>
);
};
Expand Down