Skip to content

Commit

Permalink
fix(pci): hide savings plan banner for us (#13495)
Browse files Browse the repository at this point in the history
ref: TAPC-1885

Signed-off-by: Lionel Bueno <[email protected]>
  • Loading branch information
lionel95200x authored Oct 31, 2024
1 parent 2aea101 commit 8b1cbf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ export default class PciInstancesAddController {
return this.model.datacenter?.type === 'localzone';
}

get isSavingsPlanAvailable() {
return this.pciFeatures.isFeatureAvailable(
PCI_FEATURES.PRODUCTS.SAVINGS_PLAN,
);
}

updateLocation(location, datacenters) {
this.model.location = location;
this.selectedMode = this.isLocalZone() ? this.modes[2] : this.modes[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h1 data-translate="pci_projects_project_instances_add_title"></h1>
>
<div class="container-fluid px-0">
<span
ng-if="$ctrl.isSavingsPlanAvailable"
data-translate="pci_project_instances_instance_add_region_savings_plan_info"
></span>
<div class="row">
Expand Down

0 comments on commit 8b1cbf8

Please sign in to comment.