add service level detail infos
This commit is contained in:
parent
15ede53cc3
commit
21c9734fd3
2 changed files with 17 additions and 2 deletions
|
@ -54,6 +54,7 @@ class PriceCalculator {
|
|||
this.planDescription = document.getElementById('planDescription');
|
||||
this.planCpus = document.getElementById('planCpus');
|
||||
this.planMemory = document.getElementById('planMemory');
|
||||
this.planServiceLevel = document.getElementById('planServiceLevel');
|
||||
this.managedServicePrice = document.getElementById('managedServicePrice');
|
||||
this.storagePriceEl = document.getElementById('storagePrice');
|
||||
this.storageAmount = document.getElementById('storageAmount');
|
||||
|
@ -350,12 +351,16 @@ class PriceCalculator {
|
|||
this.selectedPlanDetails.style.display = 'block';
|
||||
if (this.noMatchFound) this.noMatchFound.style.display = 'none';
|
||||
|
||||
// Get current service level
|
||||
const serviceLevel = document.querySelector('input[name="serviceLevel"]:checked')?.value || 'Best Effort';
|
||||
|
||||
// Update plan information
|
||||
if (this.planGroup) this.planGroup.textContent = plan.groupName;
|
||||
if (this.planName) this.planName.textContent = plan.compute_plan;
|
||||
if (this.planDescription) this.planDescription.textContent = plan.compute_plan_group_description || '';
|
||||
if (this.planCpus) this.planCpus.textContent = plan.vcpus;
|
||||
if (this.planMemory) this.planMemory.textContent = plan.ram + ' GB';
|
||||
if (this.planServiceLevel) this.planServiceLevel.textContent = serviceLevel;
|
||||
|
||||
// Calculate pricing
|
||||
const computePriceValue = parseFloat(plan.compute_plan_price);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue