From 8b1cbf8d449073277926485967ae7eb855623c53 Mon Sep 17 00:00:00 2001 From: Lio B Date: Thu, 31 Oct 2024 17:52:44 +0100 Subject: [PATCH] fix(pci): hide savings plan banner for us (#13495) ref: TAPC-1885 Signed-off-by: Lionel Bueno --- .../src/projects/project/instances/add/add.controller.js | 6 ++++++ .../modules/pci/src/projects/project/instances/add/add.html | 1 + 2 files changed, 7 insertions(+) diff --git a/packages/manager/modules/pci/src/projects/project/instances/add/add.controller.js b/packages/manager/modules/pci/src/projects/project/instances/add/add.controller.js index 0cc975040d02..8f55e799d6ab 100644 --- a/packages/manager/modules/pci/src/projects/project/instances/add/add.controller.js +++ b/packages/manager/modules/pci/src/projects/project/instances/add/add.controller.js @@ -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]; diff --git a/packages/manager/modules/pci/src/projects/project/instances/add/add.html b/packages/manager/modules/pci/src/projects/project/instances/add/add.html index df11be1f25f9..5f5985e42dbe 100644 --- a/packages/manager/modules/pci/src/projects/project/instances/add/add.html +++ b/packages/manager/modules/pci/src/projects/project/instances/add/add.html @@ -69,6 +69,7 @@

>