Skip to content

Commit

Permalink
change: [UIE-8268] dbaas summary add tooltip for ipv6 to read-only ho…
Browse files Browse the repository at this point in the history
…st for new db clusters
  • Loading branch information
smans-akamai committed Nov 19, 2024
1 parent 255e3ec commit b0ea5af
Showing 1 changed file with 10 additions and 2 deletions.
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

0 comments on commit b0ea5af

Please sign in to comment.