1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #3951: Fix checks for HOT_RESIZE attribute

Signed-off-by: Frederick Ernesto Borges Noronha <frederickborgesnoronha@gmail.com>
(cherry picked from commit d9177be1e84014aef4478eced8acad38a4f02344)
This commit is contained in:
Frederick Ernesto Borges Noronha 2020-12-22 22:52:19 +01:00 committed by Tino Vazquez
parent 25efce3a61
commit 5b69575993

View File

@ -122,6 +122,10 @@ define(function(require) {
var that = this;
if (that.element.STATE === "3" &&
that.element.USER_TEMPLATE &&
that.element.USER_TEMPLATE.HOT_RESIZE &&
that.element.USER_TEMPLATE.HOT_RESIZE.MEMORY_HOT_ADD_ENABLED &&
that.element.USER_TEMPLATE.HOT_RESIZE.CPU_HOT_ADD_ENABLED &&
that.element.USER_TEMPLATE.HOT_RESIZE.MEMORY_HOT_ADD_ENABLED === "NO" &&
that.element.USER_TEMPLATE.HOT_RESIZE.CPU_HOT_ADD_ENABLED === "NO"){
$('#resize_capacity',context).attr("disabled", "disabled");