]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: use safe destroy window from proxmox-widget-toolkit
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 19 Apr 2021 13:14:40 +0000 (15:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 11:02:45 +0000 (13:02 +0200)
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>
www/manager6/ceph/Pool.js
www/manager6/storage/ImageView.js

index f39cb3865fdb6f76eddfba7a8fa4613d91a42c6d..dd4ea95ee7bb8d95400c8dbf0b9309c2265010d2 100644 (file)
@@ -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(),
index c828116d028a7607279b8ab60ffe1f2c8b163cea..612c419b3864b5ee95c539302b687ebd9af821d2 100644 (file)
@@ -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);
                },