Feature #1055: add reset action to sunstone

(cherry picked from commit 05e8223d1b70e8eafc473dc091aa1e1681e088e5)
This commit is contained in:
Hector Sanjuan authored and Ruben S. Montero committed 2012-05-16 10:43:07 +02:00
1 parent f1ade057cc
commit fb05e8ee86
3 files changed
+18

No files matched your search

@@ -60,6 +60,7 @@ module OpenNebulaJSON
when "stop" then self.stop
when "suspend" then self.suspend
when "restart" then self.restart
when "reset" then self.reset
when "saveas" then self.save_as(action_hash['params'])
when "shutdown" then self.shutdown
when "reboot" then self.reboot
+3
View File
@@ -615,6 +615,9 @@ var OpenNebula = {
"reboot" : function(params){
OpenNebula.Action.simple_action(params,OpenNebula.VM.resource,"reboot");
},
"reset" : function(params){
OpenNebula.Action.simple_action(params,OpenNebula.VM.resource,"reset");
},
"log": function(params){
OpenNebula.Action.show(params,OpenNebula.VM.resource,"log");
+14
View File
@@ -301,6 +301,15 @@ var vm_actions = {
notify: true
},
"VM.reset" : {
type: "multiple",
call: OpenNebula.VM.reset,
callback: vmShow,
elements: vmElements,
error: onError,
notify: true
},
"VM.resubmit" : {
type: "multiple",
call: OpenNebula.VM.resubmit,
@@ -569,6 +578,11 @@ var vm_buttons = {
text: tr("Reboot"),
tip: tr("This will send a reboot action to running VMs")
},
"VM.reset" : {
type: "confirm",
text: tr("Reset"),
tip: tr("This will perform a hard reboot on selected VMs")
},
"VM.saveasmultiple" : {
type: "action",
text: tr("Save as")