1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

F #1764: active button VM.updateconf

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2019-07-26 16:15:51 +02:00 committed by Ruben S. Montero
parent 758ec50301
commit 7360d0c2f3

View File

@ -29,7 +29,7 @@ define(function(require) {
["VM.release", "VM.deploy", "VM.updateconf", "VM.terminate_hard", "VM.recover", "VM.resize"];
STATE_ACTIONS[OpenNebulaVM.STATES.ACTIVE] =
["VM.recover"];
["VM.recover","VM.updateconf"];
STATE_ACTIONS[OpenNebulaVM.STATES.STOPPED] =
["VM.resume", "VM.deploy", "VM.terminate_hard", "VM.recover"];
@ -174,7 +174,6 @@ define(function(require) {
function enabledStateAction(action, state, lcm_state) {
var state = parseInt(state);
var lcm_state = parseInt(lcm_state);
return (STATE_ACTIONS[state].indexOf(action) != -1 ||
(state == OpenNebulaVM.STATES.ACTIVE &&
LCM_STATE_ACTIONS[lcm_state].indexOf(action) != -1));