mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-27 03:21:29 +03:00
M #~: Remove release & hold role actions (#717)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
This commit is contained in:
parent
6fab378520
commit
9eda6cae10
@ -55,20 +55,6 @@ define(function(require) {
|
||||
][state_int]
|
||||
return state ? state : state_int;
|
||||
},
|
||||
"hold" : function(params) {
|
||||
OpenNebulaAction.simple_action(params,
|
||||
RESOURCE,
|
||||
"hold",
|
||||
generate_batch_action_params(),
|
||||
PATH);
|
||||
},
|
||||
"release" : function(params) {
|
||||
OpenNebulaAction.simple_action(params,
|
||||
RESOURCE,
|
||||
"release",
|
||||
generate_batch_action_params(),
|
||||
PATH);
|
||||
},
|
||||
"suspend" : function(params) {
|
||||
OpenNebulaAction.simple_action(params,
|
||||
RESOURCE,
|
||||
|
@ -176,24 +176,6 @@ define(function(require) {
|
||||
notify: true
|
||||
},
|
||||
|
||||
"Role.hold" : {
|
||||
type: "multiple",
|
||||
call: OpenNebulaRole.hold,
|
||||
callback: roleCallback,
|
||||
elements: roleElements,
|
||||
error: Notifier.onError,
|
||||
notify: true
|
||||
},
|
||||
|
||||
"Role.release" : {
|
||||
type: "multiple",
|
||||
call: OpenNebulaRole.release,
|
||||
callback: roleCallback,
|
||||
elements: roleElements,
|
||||
error: Notifier.onError,
|
||||
notify: true
|
||||
},
|
||||
|
||||
"Role.suspend" : {
|
||||
type: "multiple",
|
||||
call: OpenNebulaRole.suspend,
|
||||
|
@ -24,18 +24,6 @@ define(function(require) {
|
||||
layout: "create",
|
||||
custom_classes : "role-state-dependent"
|
||||
},
|
||||
"Role.hold" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Hold"),
|
||||
layout: "vmsplanification_buttons",
|
||||
custom_classes : "role-state-dependent"
|
||||
},
|
||||
"Role.release" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Release"),
|
||||
layout: "vmsplanification_buttons",
|
||||
custom_classes : "role-state-dependent"
|
||||
},
|
||||
"Role.suspend" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Suspend"),
|
||||
|
Loading…
Reference in New Issue
Block a user