mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-24 17:49:28 +03:00
Signed-off-by: Frederick Borges <fborges@opennebula.io>
This commit is contained in:
@ -348,18 +348,8 @@ define(function(require) {
|
|||||||
|
|
||||||
if (Config.isTabActionEnabled("vms-tab", "VM.disk_resize")) {
|
if (Config.isTabActionEnabled("vms-tab", "VM.disk_resize")) {
|
||||||
if (validateState(that,"VM.disk_resize") && !disk.CONTEXT) {
|
if (validateState(that,"VM.disk_resize") && !disk.CONTEXT) {
|
||||||
if(Array.isArray(that.element.HISTORY_RECORDS.HISTORY)){
|
actions += ('<a class="disk_resize nowrap" >\
|
||||||
var historyLenght = that.element.HISTORY_RECORDS.HISTORY.length - 1;
|
<i class="fas fa-expand-arrows-alt fa-fw" title="Resize"></i></a>');
|
||||||
if(that.element.LCM_STATE != "3" || that.element.HISTORY_RECORDS.HISTORY[historyLenght].VM_MAD != "vcenter"){
|
|
||||||
actions += ('<a class="disk_resize nowrap" >\
|
|
||||||
<i class="fas fa-expand-arrows-alt fa-fw" title="Resize"></i></a>');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if(that.element.LCM_STATE != "3" || that.element.HISTORY_RECORDS.HISTORY.VM_MAD != "vcenter"){
|
|
||||||
actions += ('<a class="disk_resize nowrap" >\
|
|
||||||
<i class="fas fa-expand-arrows-alt fa-fw" title="Resize"></i></a>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user