diff --git a/src/sunstone/public/app/tabs/vms-tab/buttons.js b/src/sunstone/public/app/tabs/vms-tab/buttons.js
index a2ca69f3a8..0c9e94c5a5 100644
--- a/src/sunstone/public/app/tabs/vms-tab/buttons.js
+++ b/src/sunstone/public/app/tabs/vms-tab/buttons.js
@@ -17,8 +17,13 @@
define(function(require) {
var Locale = require('utils/locale');
var Tips = require('utils/tips');
-
- var Buttons = {
+ var Config = require('sunstone-config');
+ var confirm = Config.confirmVMActions;
+ var text = "action";
+ if(confirm){
+ text = "confirm";
+ }
+ var Buttons = {
"VM.refresh" : {
type: "action",
layout: "refresh",
@@ -44,7 +49,7 @@ define(function(require) {
tip: Locale.tr("Select the new group")
},
"VM.deploy" : {
- type: "action",
+ type: text,
text: Locale.tr("Deploy"),
layout: "vmsplanification_buttons",
custom_classes : "state-dependent"
@@ -74,79 +79,79 @@ define(function(require) {
custom_classes : "state-dependent"
},
"VM.suspend" : {
- type: "action",
+ type: text,
text: Locale.tr("Suspend") + " " + Tips.html(Locale.tr("Keeps allocated Host resources. The resume operation happens quickly")) + "",
layout: "vmspause_buttons",
custom_classes : "state-dependent"
},
"VM.resume" : {
- type: "action",
+ type: text,
text: '',
layout: "vmsplay_buttons",
custom_classes : "state-dependent"
},
"VM.stop" : {
- type: "action",
+ type: text,
text: Locale.tr("Stop") + " " + Tips.html(Locale.tr("Frees Host resources. The resume operation may take long")) + "",
layout: "vmspause_buttons",
custom_classes : "state-dependent"
},
"VM.reboot" : {
- type: "action",
+ type: text,
text: Locale.tr("Reboot"),
layout: "vmsrepeat_buttons",
custom_classes : "state-dependent"
},
"VM.reboot_hard" : {
- type: "action",
+ type: text,
text: Locale.tr("Reboot") + ' ' + Locale.tr("hard") + '',
layout: "vmsrepeat_buttons",
custom_classes : "state-dependent"
},
"VM.poweroff" : {
- type: "action",
+ type: text,
text: Locale.tr("Power Off") + " " + Tips.html(Locale.tr("Keeps allocated Host resources. The resume operation happens quickly")) + "",
layout: "vmsstop_buttons",
custom_classes : "state-dependent"
},
"VM.poweroff_hard" : {
- type: "action",
+ type: text,
text: Locale.tr("Power Off") + ' ' + Locale.tr("hard") + '' + " " + Tips.html(Locale.tr("Keeps allocated Host resources. The resume operation happens quickly")) + "",
layout: "vmsstop_buttons",
custom_classes : "state-dependent"
},
"VM.undeploy" : {
- type: "action",
+ type: text,
text: Locale.tr("Undeploy") + " " + Tips.html(Locale.tr("Frees Host resources. The resume operation may take long")) + "",
layout: "vmsstop_buttons",
custom_classes : "state-dependent"
},
"VM.undeploy_hard" : {
- type: "action",
+ type: text,
text: Locale.tr("Undeploy") + ' ' + Locale.tr("hard") + '' + " " + Tips.html(Locale.tr("Frees Host resources. The resume operation may take long")) + "",
layout: "vmsstop_buttons",
custom_classes : "state-dependent"
},
"VM.terminate" : {
- type: "confirm",
+ type: text,
text: Locale.tr("Terminate"),
layout: "vmsdelete_buttons",
custom_classes : "state-dependent"
},
"VM.terminate_hard" : {
- type: "confirm",
+ type: text,
text: Locale.tr("Terminate") + ' ' + Locale.tr("hard") + '',
layout: "vmsdelete_buttons",
custom_classes : "state-dependent"
},
"VM.resched" : {
- type: "action",
+ type: text,
text: Locale.tr("Reschedule"),
layout: "vmsplanification_buttons",
custom_classes : "state-dependent"
},
"VM.unresched" : {
- type: "action",
+ type: text,
text: Locale.tr("Un-Reschedule"),
layout: "vmsplanification_buttons",
custom_classes : "state-dependent"
@@ -190,6 +195,5 @@ define(function(require) {
layout: "labels",
}
}
-
return Buttons;
})
diff --git a/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs b/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs
index 5a6c402494..814c3ed3d5 100644
--- a/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs
+++ b/src/sunstone/public/app/tabs/vms-tab/dialogs/vnc/html.hbs
@@ -21,11 +21,11 @@
{{tr "VNC"}}
{{tr "Loading"}}
-
+
-