Skip to content

Commit

Permalink
Change help text in Veeam summary for VBO V8, (add application in vee…
Browse files Browse the repository at this point in the history
…amSummary props)
  • Loading branch information
JeanMarcMilletScality committed Sep 30, 2024
1 parent 1b1d250 commit b34933b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/react/ui-elements/Veeam/VeeamSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ import { CertificateDownloadButton } from '../../next-architecture/ui/Certificat
import { useAuthGroups } from '../../utils/hooks';
import { HideCredential } from '../Hide';
import { useGetS3ServicePoint } from './useGetS3ServicePoint';
import { VEEAM_BACKUP_REPLICATION } from './VeeamConstants';

type VeeamSummaryProps = {
accountName: string;
bucketName: string;
enableImmutableBackup: boolean;
accessKey: string;
secretKey: string;
application: string;
};

export const VEEAM_SUMMARY_TITLE = 'Veeam Repository preparation summary';
Expand Down Expand Up @@ -63,6 +65,7 @@ export const VeeamSummary = ({
enableImmutableBackup,
accessKey,
secretKey,
application,
}: VeeamSummaryProps) => {
const history = useHistory();
const { isPlatformAdmin } = useAuthGroups();
Expand Down Expand Up @@ -227,7 +230,9 @@ export const VeeamSummary = ({
helpErrorPosition="bottom"
help={
enableImmutableBackup
? 'Ensure "Make recent backups immutable" is checked when configuring the bucket in Veeam.'
? `Ensure "Make ${
application === VEEAM_BACKUP_REPLICATION ? 'recent ' : ''
}backups immutable" is checked when configuring the bucket in Veeam.`
: undefined
}
content={
Expand Down
4 changes: 3 additions & 1 deletion src/react/ui-elements/Veeam/VeeamTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function VeeamTable(propsConfiguration: VeeamTableProps) {
const history = useHistory();
const queryClient = useQueryClient();
const { next } = useStepper(VeeamStepsIndexes.Table, VEEAM_STEPS);
const { bucketName, enableImmutableBackup, accountName } = propsConfiguration;
const { bucketName, enableImmutableBackup, accountName, application } =
propsConfiguration;
const { data, accessKey, secretKey } = useMutationTableData({
propsConfiguration,
});
Expand Down Expand Up @@ -144,6 +145,7 @@ export default function VeeamTable(propsConfiguration: VeeamTableProps) {
enableImmutableBackup,
accessKey,
secretKey,
application,
});
}}
/>
Expand Down

0 comments on commit b34933b

Please sign in to comment.