({ region: f.region }));
},
- submit: (volumeType: TAddon) => {
+ submit: (volumeType: TVolumeAddon) => {
volumeTypeStep.check();
volumeTypeStep.lock();
if (
diff --git a/packages/manager/apps/pci-block-storage/src/website/ovhWebsiteMapper.ts b/packages/manager/apps/pci-block-storage/src/website/ovhWebsiteMapper.ts
new file mode 100644
index 000000000000..e0bf36eeca6b
--- /dev/null
+++ b/packages/manager/apps/pci-block-storage/src/website/ovhWebsiteMapper.ts
@@ -0,0 +1,36 @@
+import { OvhSubsidiary } from '@ovh-ux/manager-react-components';
+
+export function getBaseUrl(ovhSubsidiary: OvhSubsidiary): string {
+ switch (ovhSubsidiary) {
+ case OvhSubsidiary.ASIA:
+ case OvhSubsidiary.DE:
+ case OvhSubsidiary.FR:
+ case OvhSubsidiary.IT:
+ case OvhSubsidiary.NL:
+ case OvhSubsidiary.PL:
+ case OvhSubsidiary.PT:
+ return `https://www.ovhcloud.com/${ovhSubsidiary.toLowerCase()}`;
+ case OvhSubsidiary.AU:
+ case OvhSubsidiary.CA:
+ case OvhSubsidiary.GB:
+ case OvhSubsidiary.IE:
+ case OvhSubsidiary.IN:
+ case OvhSubsidiary.SG:
+ return `https://www.ovhcloud.com/en-${ovhSubsidiary.toLowerCase()}`;
+ case OvhSubsidiary.ES:
+ return 'https://www.ovhcloud.com/es-es';
+ case OvhSubsidiary.MA:
+ case OvhSubsidiary.SN:
+ case OvhSubsidiary.TN:
+ return `https://www.ovhcloud.com/fr-${ovhSubsidiary.toLowerCase()}`;
+ case OvhSubsidiary.QC:
+ return 'https://www.ovhcloud.com/fr-ca';
+ case OvhSubsidiary.US:
+ return 'https://us.ovhcloud.com';
+ case OvhSubsidiary.WS:
+ return 'https://www.ovhcloud.com/es';
+ case OvhSubsidiary.DEFAULT:
+ default:
+ return 'https://www.ovhcloud.com/en';
+ }
+}
diff --git a/packages/manager/modules/pci/src/components/project/images-list/images-list.controller.js b/packages/manager/modules/pci/src/components/project/images-list/images-list.controller.js
index 0bfd1361e51f..89d92f0d3527 100644
--- a/packages/manager/modules/pci/src/components/project/images-list/images-list.controller.js
+++ b/packages/manager/modules/pci/src/components/project/images-list/images-list.controller.js
@@ -182,6 +182,7 @@ export default class ImagesListController {
}
onImageChange(image, distribution) {
+ console.log('images list - calling image change in', image, distribution);
if (distribution) {
this.distribution = distribution;
}
@@ -195,6 +196,7 @@ export default class ImagesListController {
this.selectedImage = image;
if (this.onChange) {
this.onChange({ image: this.selectedImage });
+ console.log('images list - calling parent onChange');
}
}
diff --git a/packages/manager/modules/pci/src/projects/project/instances/instance/edit/edit.controller.js b/packages/manager/modules/pci/src/projects/project/instances/instance/edit/edit.controller.js
index af5c9997035e..337107a6232c 100644
--- a/packages/manager/modules/pci/src/projects/project/instances/instance/edit/edit.controller.js
+++ b/packages/manager/modules/pci/src/projects/project/instances/instance/edit/edit.controller.js
@@ -91,6 +91,12 @@ export default class PciInstanceEditController {
}
onImageChange(image) {
+ console.log(
+ 'edit - calling onImageChange',
+ image,
+ this.defaultImage,
+ image ? image.isBackup() : null,
+ );
if (image) {
if (!this.defaultImage) {
this.defaultImage = image;