mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
Feature #3748: Use vm tab buttons in role VMs table
This commit is contained in:
parent
8dcde375e1
commit
73c18443c9
@ -1,109 +1,25 @@
|
||||
define(function(require) {
|
||||
var Locale = require('utils/locale');
|
||||
var VMButtons = require('tabs/vms-tab/buttons');
|
||||
|
||||
var Buttons = {
|
||||
"RoleVM.hold" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Hold"),
|
||||
tip: Locale.tr("This will hold selected pending VMs from being deployed"),
|
||||
layout: "vmsplanification_buttons",
|
||||
},
|
||||
"RoleVM.release" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Release"),
|
||||
layout: "vmsplanification_buttons",
|
||||
tip: Locale.tr("This will release held machines")
|
||||
},
|
||||
"RoleVM.suspend" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Suspend"),
|
||||
layout: "vmspause_buttons",
|
||||
tip: Locale.tr("This will suspend selected machines")
|
||||
},
|
||||
"RoleVM.resume" : {
|
||||
type: "action",
|
||||
text: '<i class="fa fa-play"/>',
|
||||
layout: "vmsplay_buttons",
|
||||
tip: Locale.tr("This will resume selected VMs")
|
||||
},
|
||||
"RoleVM.stop" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Stop"),
|
||||
layout: "vmsstop_buttons",
|
||||
tip: Locale.tr("This will stop selected VMs")
|
||||
},
|
||||
"RoleVM.reboot" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Reboot"),
|
||||
layout: "vmsrepeat_buttons",
|
||||
tip: Locale.tr("This will send a reboot action to running VMs")
|
||||
},
|
||||
"RoleVM.reboot_hard" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Reboot") + ' <span class="label secondary radius">hard</span>',
|
||||
layout: "vmsrepeat_buttons",
|
||||
tip: Locale.tr("This will perform a hard reboot on selected VMs")
|
||||
},
|
||||
"RoleVM.poweroff" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Power Off"),
|
||||
layout: "vmspause_buttons",
|
||||
tip: Locale.tr("This will send a power off signal to running VMs. They can be resumed later.")
|
||||
},
|
||||
"RoleVM.poweroff_hard" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Power Off") + ' <span class="label secondary radius">hard</span>',
|
||||
layout: "vmspause_buttons",
|
||||
tip: Locale.tr("This will send a forced power off signal to running VMs. They can be resumed later.")
|
||||
},
|
||||
"RoleVM.undeploy" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Undeploy"),
|
||||
layout: "vmsstop_buttons",
|
||||
tip: Locale.tr("Shuts down the given VM. The VM is saved in the system Datastore.")
|
||||
},
|
||||
"RoleVM.undeploy_hard" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Undeploy") + ' <span class="label secondary radius">hard</span>',
|
||||
layout: "vmsstop_buttons",
|
||||
tip: Locale.tr("Shuts down the given VM. The VM is saved in the system Datastore.")
|
||||
},
|
||||
"RoleVM.shutdown" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Shutdown"),
|
||||
layout: "vmsdelete_buttons",
|
||||
tip: Locale.tr("This will initiate the shutdown process in the selected VMs")
|
||||
},
|
||||
"RoleVM.shutdown_hard" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Shutdown") + ' <span class="label secondary radius">hard</span>',
|
||||
layout: "vmsdelete_buttons",
|
||||
tip: Locale.tr("This will initiate the shutdown-hard (forced) process in the selected VMs")
|
||||
},
|
||||
"RoleVM.delete" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Delete"),
|
||||
layout: "vmsdelete_buttons",
|
||||
tip: Locale.tr("This will delete the selected VMs from the database")
|
||||
},
|
||||
"RoleVM.delete_recreate" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Delete") + ' <span class="label secondary radius">recreate</span>',
|
||||
layout: "vmsrepeat_buttons",
|
||||
tip: Locale.tr("This will delete and recreate VMs to PENDING state")
|
||||
},
|
||||
"RoleVM.resched" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Reschedule"),
|
||||
layout: "vmsplanification_buttons",
|
||||
tip: Locale.tr("This will reschedule selected VMs")
|
||||
},
|
||||
"RoleVM.unresched" : {
|
||||
type: "action",
|
||||
text: Locale.tr("Un-Reschedule"),
|
||||
layout: "vmsplanification_buttons",
|
||||
tip: Locale.tr("This will cancel the rescheduling for the selected VMs")
|
||||
}
|
||||
"RoleVM.hold" : VMButtons["VM.hold"],
|
||||
"RoleVM.release" : VMButtons["VM.release"],
|
||||
"RoleVM.suspend" : VMButtons["VM.suspend"],
|
||||
"RoleVM.resume" : VMButtons["VM.resume"],
|
||||
"RoleVM.stop" : VMButtons["VM.stop"],
|
||||
"RoleVM.reboot" : VMButtons["VM.reboot"],
|
||||
"RoleVM.reboot_hard" : VMButtons["VM.reboot_hard"],
|
||||
"RoleVM.poweroff" : VMButtons["VM.poweroff"],
|
||||
"RoleVM.poweroff_hard" : VMButtons["VM.poweroff_hard"],
|
||||
"RoleVM.undeploy" : VMButtons["VM.undeploy"],
|
||||
"RoleVM.undeploy_hard" : VMButtons["VM.undeploy_hard"],
|
||||
"RoleVM.shutdown" : VMButtons["VM.shutdown"],
|
||||
"RoleVM.shutdown_hard" : VMButtons["VM.shutdown_hard"],
|
||||
"RoleVM.delete" : VMButtons["VM.delete"],
|
||||
"RoleVM.delete_recreate" : VMButtons["VM.delete_recreate"],
|
||||
"RoleVM.resched" : VMButtons["VM.resched"],
|
||||
"RoleVM.unresched" : VMButtons["VM.unresched"]
|
||||
};
|
||||
|
||||
return Buttons;
|
||||
|
Loading…
x
Reference in New Issue
Block a user