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 += ('\ + '); } } }