Skip to content

Commit

Permalink
fix: disable PITR tooltip for PG with no backups (#1040)
Browse files Browse the repository at this point in the history
Co-authored-by: Percona Platform Robot <[email protected]>
  • Loading branch information
dianabirs and percona-robot authored Feb 5, 2025
1 parent 3491683 commit 06ea679
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ export const BackupsDetails = ({
'data-testid': 'edit-pitr-button',
}}
editable={editable && !pitrDisabled}
showTooltip={
editable && !backupsEnabled && dbType !== DbType.Postresql
}
disabledEditTooltipText={Messages.titles.createScheduleToEnable}
>
{/*// TODO EVEREST-1066 the width of the columns on the layouts in different places is limited by a different number (but not by the content), a discussion with Design is required*/}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const OverviewSection = ({
dataTestId,
editable,
actionButtonProps,
showTooltip = false,
disabledEditTooltipText = '',
}: OverviewSectionProps) => (
<Grid
Expand All @@ -53,7 +54,7 @@ export const OverviewSection = ({
{title}
</Typography>
{actionButtonProps && (
<Tooltip title={!editable ? disabledEditTooltipText : ''}>
<Tooltip title={showTooltip ? disabledEditTooltipText : ''}>
<Box>
<Button
size="small"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export type OverviewSectionProps = {
'data-testid'?: string;
};
editable?: boolean;
showTooltip?: boolean;
disabledEditTooltipText?: string;
} & LoadableChildrenProps;

0 comments on commit 06ea679

Please sign in to comment.