Skip to content

Commit

Permalink
PMM-11085 hide backup action (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Mikes <filip.mikes@3pillarglobal.com>
  • Loading branch information
fabio-silva and filipmikes1 committed Nov 25, 2022
1 parent 235a643 commit 7369e2d
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const BackupInventoryActions: FC<BackupInventoryActionsProps> = ({
}) => {
const styles = useStyles2(getStyles);
const handeClick = () => onRestore(backup);
const handleBackup = () => onBackup(backup);
// TODO uncomment when there's definition for this action
// const handleBackup = () => onBackup(backup);
const handleDelete = () => onDelete(backup);

const getActions: Action[] = [
Expand All @@ -34,15 +35,15 @@ export const BackupInventoryActions: FC<BackupInventoryActionsProps> = ({
disabled: backup.status !== BackupStatus.BACKUP_STATUS_SUCCESS,
action: handeClick,
},
{
content: (
<div className={styles.dropdownField}>
<DBIcon type="backup" data-testid="add-backup-artifact-button" role="button" />
{Messages.addBackup}
</div>
),
action: handleBackup,
},
// {
// content: (
// <div className={styles.dropdownField}>
// <DBIcon type="backup" data-testid="add-backup-artifact-button" role="button" />
// {Messages.addBackup}
// </div>
// ),
// action: handleBackup,
// },
{
content: (
<div className={styles.dropdownField}>
Expand Down

0 comments on commit 7369e2d

Please sign in to comment.