From 39148f0f72b2e720cbac1938232106d53f32e222 Mon Sep 17 00:00:00 2001 From: Selmen AKRMI Date: Fri, 18 Oct 2024 16:55:51 +0200 Subject: [PATCH] feat(pci-object-storage): fix new issues ref: TAPC-1189 Signed-off-by: Selmen AKRMI --- .../storages/containers/add/add.controller.js | 1 + .../add/translations/Messages_fr_FR.json | 4 ++-- .../containers/container/container.controller.js | 13 ------------- .../storages/containers/container/container.html | 10 +--------- .../containers/container/delete/delete.html | 2 +- .../storages/containers/containers.service.js | 15 --------------- 6 files changed, 5 insertions(+), 40 deletions(-) diff --git a/packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js b/packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js index c46c599a590d..5cb860f45aa0 100644 --- a/packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js +++ b/packages/manager/modules/pci/src/projects/project/storages/containers/add/add.controller.js @@ -275,6 +275,7 @@ export default class PciStoragesContainersAddController { onContainerSolutionChange() { this.container.region = null; + this.container.containerType = null; } onRegionsFocus() { diff --git a/packages/manager/modules/pci/src/projects/project/storages/containers/add/translations/Messages_fr_FR.json b/packages/manager/modules/pci/src/projects/project/storages/containers/add/translations/Messages_fr_FR.json index 18cee37682db..29243bc3fd8e 100644 --- a/packages/manager/modules/pci/src/projects/project/storages/containers/add/translations/Messages_fr_FR.json +++ b/packages/manager/modules/pci/src/projects/project/storages/containers/add/translations/Messages_fr_FR.json @@ -33,8 +33,8 @@ "pci_projects_project_storages_containers_add_error_post": "Une erreur est survenue lors de l'ajout du conteneur {{ container }} : {{ message }}.", "pci_projects_project_storages_containers_add_type_price": "{{price}} HT/mois/Go", "pci_projects_project_storages_containers_deployment_mode_title": "Sélectionnez un mode de déploiement", - "pci_projects_project_storages_containers_add_deployment_mode_region-3-az": "Région 3-AZ", - "pci_projects_project_storages_containers_add_deployment_mode_region": "Région 1-AZ", + "pci_projects_project_storages_containers_add_deployment_mode_region-3-az": "Régions 3-AZ", + "pci_projects_project_storages_containers_add_deployment_mode_region": "Régions 1-AZ", "pci_projects_project_storages_containers_add_deployment_mode_region-3-az_description": "Déploiement hautement résilient et disponible sur 3 zones de disponibilité.", "pci_projects_project_storages_containers_add_deployment_mode_region_description": "Déploiement résilient et économique sur 1 zone de disponibilité.", "pci_projects_project_storages_containers_add_deployment_mode_region-3-az_label": "3-AZ", diff --git a/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.controller.js b/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.controller.js index c2360cdb9dc7..2b8ef3befba7 100644 --- a/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.controller.js +++ b/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.controller.js @@ -63,7 +63,6 @@ export default class PciStoragesContainersContainerController { this.container.s3StorageType !== null && !this.archive; this.loadMessages(); - this.checkFileUploadState(); } isLocalZone() { @@ -121,18 +120,6 @@ export default class PciStoragesContainersContainerController { .catch((err) => this.handleDownloadError(err)); } - checkFileUploadState() { - if (!this.container.s3StorageType) { - return false; - } - return this.PciProjectStorageContainersService.hasOngoingOpenIOMigration( - this.projectId, - this.container.region, - ).then((ismigrating) => { - this.isFileUploadDisabled = ismigrating; - }); - } - downloadStandardS3Object(serviceName, regionName, containerName, object) { return this.PciProjectStorageContainersService.downloadStandardS3Object( serviceName, diff --git a/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.html b/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.html index af6c447b4d4e..a9a2de73af3d 100644 --- a/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.html +++ b/packages/manager/modules/pci/src/projects/project/storages/containers/container/container.html @@ -44,11 +44,6 @@ - - -
@@ -295,10 +290,7 @@ - +