From 74b47ff6817f1eeaf06ba314de578830e06d3a14 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Thu, 3 Sep 2020 12:16:11 +0200 Subject: [PATCH] F #4569: Hot disk resize on vcenter (#177) Signed-off-by: Frederick Borges --- .../public/app/tabs/vms-tab/panels/storage.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/storage.js b/src/sunstone/public/app/tabs/vms-tab/panels/storage.js index ce9d99af4f..e10c60a8b5 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/storage.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/storage.js @@ -348,18 +348,8 @@ define(function(require) { if (Config.isTabActionEnabled("vms-tab", "VM.disk_resize")) { if (validateState(that,"VM.disk_resize") && !disk.CONTEXT) { - if(Array.isArray(that.element.HISTORY_RECORDS.HISTORY)){ - var historyLenght = that.element.HISTORY_RECORDS.HISTORY.length - 1; - if(that.element.LCM_STATE != "3" || that.element.HISTORY_RECORDS.HISTORY[historyLenght].VM_MAD != "vcenter"){ - actions += ('\ - '); - } - } else { - if(that.element.LCM_STATE != "3" || that.element.HISTORY_RECORDS.HISTORY.VM_MAD != "vcenter"){ - actions += ('\ - '); - } - } + actions += ('\ + '); } } }