mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #1991: Add UNDEPLOYED state to the resize capacity condition
This commit is contained in:
1 parent
15a65a8e01
commit
4e3ec40d3e
1 file changed
+2
-2
@@ -2330,8 +2330,8 @@ function printCapacity(vm_info){
|
||||
<div class="twelve columns">'
|
||||
|
||||
if (Config.isTabActionEnabled("vms-tab", "VM.resize")) {
|
||||
// If VM is not RUNNING, then we forget about the attach nic form.
|
||||
if (vm_info.STATE == "0" || vm_info.STATE == "1" || vm_info.STATE == "2" || vm_info.STATE == "7" || vm_info.STATE == "8"){
|
||||
// If VM is not INIT, PENDING, HOLD, FAILED, POWEROFF, UNDEPLOYED, then we forget about the resize form.
|
||||
if (vm_info.STATE == "0" || vm_info.STATE == "1" || vm_info.STATE == "2" || vm_info.STATE == "7" || vm_info.STATE == "8" || vm_info.STATE == "9"){
|
||||
html += '\
|
||||
<button id="resize_capacity" class="button small secondary radius" >' + tr("Resize VM capacity") +'</button>'
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user