diff --git a/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles/roles-vm-buttons.js b/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles/roles-vm-buttons.js
index 26e24a8f59..2f96cea4f7 100644
--- a/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles/roles-vm-buttons.js
+++ b/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles/roles-vm-buttons.js
@@ -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: '',
- 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") + ' hard',
- 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") + ' hard',
- 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") + ' hard',
- 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") + ' hard',
- 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") + ' recreate',
- 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;