[pve-devel] [PATCH manager 2/3] mark node shutdown/reboot buttons as dangerous

Thomas Lamprecht t.lamprecht at proxmox.com
Fri May 12 12:14:20 CEST 2017


this has the effect that a warning triangle instead of an "?" symbol
is displayed and that the default focus is on "No"

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/node/Config.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js
index af768e9f..be3393bb 100644
--- a/www/manager6/node/Config.js
+++ b/www/manager6/node/Config.js
@@ -83,6 +83,7 @@ Ext.define('PVE.node.Config', {
 	var restartBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Restart'),
 	    disabled: !caps.nodes['Sys.PowerMgmt'],
+	    dangerous: true,
 	    confirmMsg: gettext('Node') + " '" + nodename + "' - " + gettext('Restart'),
 	    handler: function() {
 		node_command('reboot');
@@ -93,6 +94,7 @@ Ext.define('PVE.node.Config', {
 	var shutdownBtn = Ext.create('PVE.button.Button', {
 	    text: gettext('Shutdown'),
 	    disabled: !caps.nodes['Sys.PowerMgmt'],
+	    dangerous: true,
 	    confirmMsg: gettext('Node') + " '" + nodename + "' - " + gettext('Shutdown'),
 	    handler: function() {
 		node_command('shutdown');
-- 
2.11.0





More information about the pve-devel mailing list