]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: use new SafeDestroyGuest window
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 19 Apr 2021 13:14:38 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 10:48:41 +0000 (12:48 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/lxc/Config.js
www/manager6/qemu/Config.js

index 73e34614fb4f9ede37f67975a083e6640be204b5..f996bad18ed947dfbce78a59e58897f7ca488341 100644 (file)
@@ -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',
index 108df69b543b2e8d9298b8822ef677b6a8109725..62f48eb1552feb9babb2ece0a611023e97691e7a 100644 (file)
@@ -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',