[pve-devel] [PATCH manager 6/7] ui: use safe destroy window from proxmox-widget-toolkit

Fabian Ebner f.ebner at proxmox.com
Mon Apr 19 15:14:40 CEST 2021


for the remaining (i.e. non-guests) users.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/ceph/Pool.js         | 3 ++-
 www/manager6/storage/ImageView.js | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index 5dabd4e6..910fcb65 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -238,13 +238,14 @@ Ext.define('PVE.node.CephPoolList', {
 		var base_url = '/nodes/' + nodename + '/ceph/pools/' +
 		    rec.data.pool_name;
 
-		var win = Ext.create('PVE.window.SafeDestroy', {
+		var win = Ext.create('Proxmox.window.SafeDestroy', {
 		    showProgress: true,
 		    url: base_url,
 		    params: {
 			remove_storages: 1,
 		    },
 		    item: { type: 'CephPool', id: rec.data.pool_name },
+		    taskName: 'cephdestroypool',
 		}).show();
 		win.on('destroy', function() {
 		    rstore.load();
diff --git a/www/manager6/storage/ImageView.js b/www/manager6/storage/ImageView.js
index c828116d..612c419b 100644
--- a/www/manager6/storage/ImageView.js
+++ b/www/manager6/storage/ImageView.js
@@ -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);
 		},
-- 
2.20.1






More information about the pve-devel mailing list