[pve-devel] [PATCH manager 4/7] ui: use new SafeDestroyGuest window

Fabian Ebner f.ebner at proxmox.com
Mon Apr 19 15:14:38 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at 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






More information about the pve-devel mailing list