use warning icon for dangerous actions

This commit is contained in:
Dietmar Maurer 2012-04-24 08:59:43 +02:00
parent f3ddc10d8a
commit 8d44236a0e

View File

@ -42,8 +42,8 @@ Ext.define('PVE.button.Button', {
}
Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
Ext.Msg.show({
title: gettext('Confirmtest'),
icon: 'ext-mb-question',
title: gettext('Confirm'),
icon: me.dangerous ? Ext.Msg.WARNING : Ext.Msg.QUESTION,
msg: msg,
buttons: Ext.Msg.YESNO,
callback: function(btn) {