From 19efd77d510b6f5f5a7f9163802e9fd4d0baddf9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Millet Date: Mon, 30 Sep 2024 15:17:18 +0200 Subject: [PATCH] Change help text in Veeam summary for VBO V8, (add application in veeamSummary props) --- src/react/ui-elements/Veeam/VeeamSummary.tsx | 7 ++++++- src/react/ui-elements/Veeam/VeeamTable.tsx | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/react/ui-elements/Veeam/VeeamSummary.tsx b/src/react/ui-elements/Veeam/VeeamSummary.tsx index 65b6a372e..dc0014e0e 100644 --- a/src/react/ui-elements/Veeam/VeeamSummary.tsx +++ b/src/react/ui-elements/Veeam/VeeamSummary.tsx @@ -15,6 +15,7 @@ import { CertificateDownloadButton } from '../../next-architecture/ui/Certificat import { useAuthGroups } from '../../utils/hooks'; import { HideCredential } from '../Hide'; import { useGetS3ServicePoint } from './useGetS3ServicePoint'; +import { VEEAM_OFFICE_365_V8 } from './VeeamConstants'; type VeeamSummaryProps = { accountName: string; @@ -22,6 +23,7 @@ type VeeamSummaryProps = { enableImmutableBackup: boolean; accessKey: string; secretKey: string; + application: string; }; export const VEEAM_SUMMARY_TITLE = 'Veeam Repository preparation summary'; @@ -63,6 +65,7 @@ export const VeeamSummary = ({ enableImmutableBackup, accessKey, secretKey, + application, }: VeeamSummaryProps) => { const history = useHistory(); const { isPlatformAdmin } = useAuthGroups(); @@ -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_OFFICE_365_V8 ? '' : 'recent ' + }backups immutable" is checked when configuring the bucket in Veeam.` : undefined } content={ diff --git a/src/react/ui-elements/Veeam/VeeamTable.tsx b/src/react/ui-elements/Veeam/VeeamTable.tsx index 78f71bdc9..f02dfe8e0 100644 --- a/src/react/ui-elements/Veeam/VeeamTable.tsx +++ b/src/react/ui-elements/Veeam/VeeamTable.tsx @@ -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, }); @@ -144,6 +145,7 @@ export default function VeeamTable(propsConfiguration: VeeamTableProps) { enableImmutableBackup, accessKey, secretKey, + application, }); }} />