From 267f7d27a8b1a0cf1292e2ae1f184c0082d822c3 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Tue, 15 Feb 2022 19:21:25 +0100 Subject: [PATCH] B #5451: Clean VCPU_MAX and MEMORY_MAX when disabling hot resize (#1778) --- .../form-panels/create/wizard-tabs/general/capacity-create.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js index 99c2675e01..a1659cb64e 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-create.js @@ -259,6 +259,8 @@ define(function(require) { $("#MEMORY_HOT_ADD_ENABLED", context).on("change", function(){ if (this.value == "NO"){ + $("#MEMORY_MAX", context).val(""); + $("#MEMORY_MAX_GB", context).val(""); $("#memory_max_group", context).hide(); } else{ @@ -268,6 +270,7 @@ define(function(require) { $("#CPU_HOT_ADD_ENABLED", context).on("change", function(){ if (this.value == "NO"){ + $("#VCPU_MAX", context).val(""); $("#vcpu_max_group", context).hide(); } else{