[pve-devel] [PATCH manager] close #584: ui qemu: changed remove disk to asynchron call
Tim Marx
t.marx at proxmox.com
Wed Oct 17 12:06:29 CEST 2018
Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
www/manager6/qemu/HardwareView.js | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index a1bccc3c..605ceffe 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -376,16 +376,25 @@ Ext.define('PVE.qemu.HardwareView', {
Proxmox.Utils.API2Request({
url: '/api2/extjs/' + baseurl,
waitMsgTarget: me,
- method: 'PUT',
+ method: 'POST',
params: {
'delete': rec.data.key
},
- callback: function() {
- reload();
- },
failure: function (response, opts) {
Ext.Msg.alert('Error', response.htmlStatus);
- }
+ },
+ success: function(response, options) {
+ var upid = response.result.data;
+ var win = Ext.create('Proxmox.window.TaskProgress', {
+ upid: upid,
+ listeners: {
+ destroy: function () {
+ me.reload();
+ }
+ }
+ });
+ win.show();
+ },
});
},
listeners: {
--
2.11.0
More information about the pve-devel
mailing list