mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #1055: add reset action to sunstone
(cherry picked from commit 05e8223d1b70e8eafc473dc091aa1e1681e088e5)
This commit is contained in:
parent
f1ade057cc
commit
fb05e8ee86
@ -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
|
||||
|
@ -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");
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user