Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 www/manager6/lxc/Config.js  | 3 ++-
 www/manager6/qemu/Config.js | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 73e34614..f996bad1 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -150,9 +150,10 @@ Ext.define('PVE.lxc.Config', {
                    disabled: !caps.vms['VM.Allocate'],
                    itemId: 'removeBtn',
                    handler: function() {
-                       Ext.create('PVE.window.SafeDestroy', {
+                       Ext.create('PVE.window.SafeDestroyGuest', {
                            url: base_url,
                            item: { type: 'CT', id: vmid },
+                           taskName: 'vzdestroy',
                        }).show();
                    },
                    iconCls: 'fa fa-trash-o',
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 10bf10a4..21bf3749 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -125,9 +125,10 @@ Ext.define('PVE.qemu.Config', {
                    itemId: 'removeBtn',
                    disabled: !caps.vms['VM.Allocate'],
                    handler: function() {
-                       Ext.create('PVE.window.SafeDestroy', {
+                       Ext.create('PVE.window.SafeDestroyGuest', {
                            url: base_url,
                            item: { type: 'VM', id: vmid },
+                           taskName: 'qmdestroy',
                        }).show();
                    },
                    iconCls: 'fa fa-trash-o',
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to