mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 03:10:11 +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'],
|
disabled: !caps.vms['VM.Allocate'],
|
||||||
itemId: 'removeBtn',
|
itemId: 'removeBtn',
|
||||||
handler: function() {
|
handler: function() {
|
||||||
Ext.create('PVE.window.SafeDestroy', {
|
Ext.create('PVE.window.SafeDestroyGuest', {
|
||||||
url: base_url,
|
url: base_url,
|
||||||
item: { type: 'CT', id: vmid },
|
item: { type: 'CT', id: vmid },
|
||||||
|
taskName: 'vzdestroy',
|
||||||
}).show();
|
}).show();
|
||||||
},
|
},
|
||||||
iconCls: 'fa fa-trash-o',
|
iconCls: 'fa fa-trash-o',
|
||||||
|
@ -125,9 +125,10 @@ Ext.define('PVE.qemu.Config', {
|
|||||||
itemId: 'removeBtn',
|
itemId: 'removeBtn',
|
||||||
disabled: !caps.vms['VM.Allocate'],
|
disabled: !caps.vms['VM.Allocate'],
|
||||||
handler: function() {
|
handler: function() {
|
||||||
Ext.create('PVE.window.SafeDestroy', {
|
Ext.create('PVE.window.SafeDestroyGuest', {
|
||||||
url: base_url,
|
url: base_url,
|
||||||
item: { type: 'VM', id: vmid },
|
item: { type: 'VM', id: vmid },
|
||||||
|
taskName: 'qmdestroy',
|
||||||
}).show();
|
}).show();
|
||||||
},
|
},
|
||||||
iconCls: 'fa fa-trash-o',
|
iconCls: 'fa fa-trash-o',
|
||||||
|
Loading…
Reference in New Issue
Block a user