Signed-off-by: Wolfgang Link <w.l...@proxmox.com> --- www/manager/openvz/Config.js | 4 +++- www/manager/qemu/Config.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/www/manager/openvz/Config.js b/www/manager/openvz/Config.js index 8589f22..17f40b5 100644 --- a/www/manager/openvz/Config.js +++ b/www/manager/openvz/Config.js @@ -15,6 +15,8 @@ Ext.define('PVE.openvz.Config', { throw "no VM ID specified"; } + var vmname = me.pveSelNode.data.name; + var caps = Ext.state.Manager.get('GuiCap'); var base_url = '/nodes/' + nodename + '/openvz/' + vmid; @@ -88,7 +90,7 @@ Ext.define('PVE.openvz.Config', { text: gettext('Remove'), disabled: !caps.vms['VM.Allocate'], dangerous: true, - confirmMsg: Ext.String.format(gettext('Are you sure you want to remove VM {0}? This will permanently erase all VM data.'), vmid), + confirmMsg: Ext.String.format(gettext('Are you sure you want to remove VM {0} ('+vmname+')? This will permanently erase all VM data.'), vmid), handler: function() { PVE.Utils.API2Request({ url: base_url, diff --git a/www/manager/qemu/Config.js b/www/manager/qemu/Config.js index 1d1c8a2..ed2dd24 100644 --- a/www/manager/qemu/Config.js +++ b/www/manager/qemu/Config.js @@ -15,6 +15,8 @@ Ext.define('PVE.qemu.Config', { throw "no VM ID specified"; } + var vmname = me.pveSelNode.data.name; + var caps = Ext.state.Manager.get('GuiCap'); var base_url = '/nodes/' + nodename + "/qemu/" + vmid; @@ -97,7 +99,7 @@ Ext.define('PVE.qemu.Config', { text: gettext('Remove'), disabled: !caps.vms['VM.Allocate'], dangerous: true, - confirmMsg: Ext.String.format(gettext('Are you sure you want to remove VM {0}? This will permanently erase all VM data.'), vmid), + confirmMsg: Ext.String.format(gettext('Are you sure you want to remove VM {0} ('+vmname+')? This will permanently erase all VM data.'), vmid), handler: function() { PVE.Utils.API2Request({ url: base_url, -- 1.7.10.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel