mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 17:10:35 +00:00
ui: use safe destroy window from proxmox-widget-toolkit
for the remaining (i.e. non-guests) users. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
94d2359b78
commit
b9635c9b99
@ -407,7 +407,7 @@ Ext.define('PVE.node.CephPoolList', {
|
||||
return;
|
||||
}
|
||||
let poolName = rec.data.pool_name;
|
||||
Ext.create('PVE.window.SafeDestroy', {
|
||||
Ext.create('Proxmox.window.SafeDestroy', {
|
||||
showProgress: true,
|
||||
url: `/nodes/${nodename}/ceph/pools/${poolName}`,
|
||||
params: {
|
||||
@ -417,6 +417,7 @@ Ext.define('PVE.node.CephPoolList', {
|
||||
type: 'CephPool',
|
||||
id: poolName,
|
||||
},
|
||||
taskName: 'cephdestroypool',
|
||||
autoShow: true,
|
||||
listeners: {
|
||||
destroy: () => rstore.load(),
|
||||
|
@ -57,11 +57,12 @@ Ext.define('PVE.storage.ImageView', {
|
||||
return;
|
||||
}
|
||||
}
|
||||
var win = Ext.create('PVE.window.SafeDestroy', {
|
||||
var win = Ext.create('Proxmox.window.SafeDestroy', {
|
||||
title: Ext.String.format(gettext("Destroy '{0}'"), rec.data.volid),
|
||||
showProgress: true,
|
||||
url: url,
|
||||
item: { type: 'Image', id: vmid },
|
||||
taskName: 'unknownimgdel',
|
||||
}).show();
|
||||
win.on('destroy', reload);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user