mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 15:41:01 +00:00
ui: use new SafeDestroyGuest window
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
803053dad8
commit
2452e18de4
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user