mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-06 11:54:48 +00:00
explicit set button focus respecting the 'dangerous' option
port commit 4dc6bd326a829d5bf708c4a33722d5a8c6304f9c from pve-manager
This commit is contained in:
parent
c47f5f46f4
commit
a147a8cbb7
@ -48,6 +48,7 @@ Ext.define('Proxmox.button.Button', {
|
|||||||
icon: me.dangerous ? Ext.Msg.WARNING : Ext.Msg.QUESTION,
|
icon: me.dangerous ? Ext.Msg.WARNING : Ext.Msg.QUESTION,
|
||||||
msg: msg,
|
msg: msg,
|
||||||
buttons: Ext.Msg.YESNO,
|
buttons: Ext.Msg.YESNO,
|
||||||
|
defaultFocus: me.dangerous ? 'no' : 'yes',
|
||||||
callback: function(btn) {
|
callback: function(btn) {
|
||||||
if (btn !== 'yes') {
|
if (btn !== 'yes') {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user