ui: use new SafeDestroyGuest window

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-04-19 15:14:38 +02:00 committed by Thomas Lamprecht
parent 803053dad8
commit 2452e18de4
2 changed files with 4 additions and 2 deletions

View 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',

View 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',