mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #4184: Add Zone.append action
This commit is contained in:
1 parent
7c7e625bed
commit
583afb23de
3 files changed
+10
-1
No files matched your search
@@ -49,7 +49,11 @@ module OpenNebulaJSON
|
||||
end
|
||||
|
||||
def update(params=Hash.new)
|
||||
super(params['template_raw'])
|
||||
if !params['append'].nil?
|
||||
super(params['template_raw'], params['append'])
|
||||
else
|
||||
super(params['template_raw'])
|
||||
end
|
||||
end
|
||||
|
||||
def rename(params=Hash.new)
|
||||
|
||||
@@ -37,6 +37,10 @@ define(function(require) {
|
||||
var action_obj = {"template_raw" : params.data.extra_param};
|
||||
OpenNebulaAction.simple_action(params, RESOURCE, "update", action_obj);
|
||||
},
|
||||
"append": function(params) {
|
||||
var action_obj = {"template_raw" : params.data.extra_param, append : true};
|
||||
OpenNebulaAction.simple_action(params, RESOURCE, "update", action_obj);
|
||||
},
|
||||
"rename" : function(params) {
|
||||
var action_obj = params.data.extra_param;
|
||||
OpenNebulaAction.simple_action(params, RESOURCE, "rename", action_obj);
|
||||
|
||||
@@ -53,6 +53,7 @@ define(function(require) {
|
||||
"Zone.refresh" : _commonActions.refresh(),
|
||||
"Zone.delete" : _commonActions.del(),
|
||||
"Zone.update_template" : _commonActions.updateTemplate(),
|
||||
"Zone.append_template" : _commonActions.appendTemplate(),
|
||||
"Zone.rename": _commonActions.singleAction('rename'),
|
||||
|
||||
"Zone.show_to_update" : {
|
||||
|
||||
Reference in new issue
Block a user