Skip to content

Commit

Permalink
feat(veeam-backup): add USA onboarding
Browse files Browse the repository at this point in the history
ref: MANAGER-15834

Signed-off-by: Nicolas Pierre-charles <[email protected]>
  • Loading branch information
Nicolas Pierre-charles committed Nov 22, 2024
1 parent da48eae commit b08d756
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export const UpdateNameModal: React.FC<UpdateNameModalProps> = ({
)}
</OdsFormField>
<OdsButton
isDisabled={isLoading}
slot="actions"
variant={ODS_BUTTON_VARIANT.ghost}
{...handleClick(closeModal)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useTranslation } from 'react-i18next';
const urls: Partial<{ [key in OvhSubsidiary]: string }> = {
FR: 'https://www.ovhcloud.com/fr/lp/vmware-vcd-evolution/veeam/',
GB: 'https://www.ovhcloud.com/en/lp/vmware-vcd-evolution/veeam/',
US: 'https://us.ovhcloud.com/lp/vmware-vcd-evolution/veeam/',
DEFAULT: 'https://www.ovhcloud.com/en/lp/vmware-vcd-evolution/veeam/',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ShellContext } from '@ovh-ux/manager-react-shell-client';

const docUrl = 'https://help.ovhcloud.com/csm/';

const usDocUrl = 'https://support.us.ovhcloud.com/hc/en-us/articles/';

type GuideLinks = { [key in CountryCode | 'DEFAULT']: string };

const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
Expand All @@ -30,6 +32,7 @@ const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
ASIA: 'asia-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063129',
WE: 'en-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063125',
WS: 'es-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063132',
US: '33255029079059-VMware-Cloud-Director-Backup-with-Veeam-Data-Platform',
},
guideLink2: {
DEFAULT:
Expand Down Expand Up @@ -74,6 +77,7 @@ const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
'asia-vmware-vcd-getting-started-dashboard-overview?id=kb_article_view&sysparm_article=KB0062569',
WE:
'en-vmware-vcd-getting-started-dashboard-overview?id=kb_article_view&sysparm_article=KB0062573',
US: '28330367397139-VMware-Cloud-Director-The-Fundamentals-of-VCD',
},
guideLink3: {
DEFAULT: 'en-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062598',
Expand All @@ -97,6 +101,7 @@ const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
SG: 'en-sg-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062554',
ASIA: 'asia-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062558',
WE: 'en-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062598',
US: '28329887272467-VMware-Cloud-Director-FAQ',
},
};

Expand All @@ -107,9 +112,10 @@ type GetGuideLinkProps = {

function getGuideListLink({ subsidiary }: GetGuideLinkProps) {
const list: { [guideName: string]: string } = {};
const prefix = subsidiary === 'US' ? usDocUrl : docUrl;
const keys = Object.entries(GUIDE_LIST);
keys.forEach((key) => {
list[key[0]] = docUrl + GUIDE_LIST[key[0]][subsidiary || 'DEFAULT'];
list[key[0]] = prefix + GUIDE_LIST[key[0]][subsidiary || 'DEFAULT'];
});
return list;
}
Expand Down

0 comments on commit b08d756

Please sign in to comment.