mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 15:49:24 +00:00
mark node shutdown/reboot buttons as dangerous
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@proxmox.com> Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8348c25c4c
commit
31cb3622cf
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user