Skip to content

Commit

Permalink
feat(pci-object-storage): us qa issues
Browse files Browse the repository at this point in the history
ref: TAPC-1189
Signed-off-by: Selmen AKRMI <[email protected]>
  • Loading branch information
Selmen AKRMI committed Nov 5, 2024
1 parent d196cec commit 18a7c70
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,6 @@
>
</strong>
</p>
<p class="oui-color-ae-500" data-ng-if="$ctrl.isDiscoveryProject">
<strong
data-translate="pci_project_regions_list_activate_project_banner_message"
></strong>
<a
data-ng-href="{{:: $ctrl.projectActivationPageHref }}"
data-translate="pci_project_regions_list_activate_project_banner_link_text"
></a>
</p>
</div>
<div data-ng-if="$ctrl.isDiscoveryProject" class="regions-list">
<p class="oui-color-ae-500">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class PciStoragesContainersAddController {
},
);

this.featureFlipLocalzoneContainer();
// this.featureFlipLocalzoneContainer();
this.setOffersPrices();
this.setDeploymentModePrices();
this.featureFlip3azContainer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ <h2 class="oui-header__description mb-5">
>
<oui-select-picker-label>
<strong
data-ng-bind=":: ('pci_projects_project_storages_containers_add_deployment_mode_' + $ctrl.container.deploymentMode) | translate"
data-ng-bind=":: (($ctrl.isLocalzoneAvailable
? 'pci_projects_project_storages_containers_add_deployment_mode_'
: 'pci_projects_project_storages_containers_add_deployment_mode_flipping_') + $ctrl.container.deploymentMode) | translate"
></strong>
<span
class="oui-badge oui-badge_best-seller oui-3az"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export default {
trackPage: '<',
regions: '<?',
isLocalzoneAvailable: '<',
is3azAvailable: '<',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ export default class PciStoragesContainersController {
`pci_projects_project_storages_containers_deployment_mode_${type}`,
);
});
if (!this.is3azAvailable) {
delete this.deploymentModeOptions.values[
OBJECT_CONTAINER_MODE_MULTI_ZONES
];
}
if (!this.isLocalzoneAvailable) {
delete this.deploymentModeOptions.values[
OBJECT_CONTAINER_MODE_LOCAL_ZONE
];

this.deploymentModeOptions.values[
OBJECT_CONTAINER_MODE_MONO_ZONE
] = this.$translate.instant(
'pci_projects_project_storages_containers_add_deployment_mode_flipping_region',
);
}
}

addDeploymentMode() {
Expand Down

0 comments on commit 18a7c70

Please sign in to comment.