Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
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',
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',