[pve-devel] [PATCH manager 1/3] close HDMove on taskDone
Dominik Csapak
d.csapak at proxmox.com
Mon May 7 14:10:12 CEST 2018
this triggers the 'destroy' event of the window at the correct time
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/qemu/HDMove.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/www/manager6/qemu/HDMove.js b/www/manager6/qemu/HDMove.js
index 29d3e1b8..4fcca3da 100644
--- a/www/manager6/qemu/HDMove.js
+++ b/www/manager6/qemu/HDMove.js
@@ -27,9 +27,13 @@ Ext.define('PVE.window.HDMove', {
},
success: function(response, options) {
var upid = response.result.data;
- var win = Ext.create('Proxmox.window.TaskViewer', { upid: upid });
+ var win = Ext.create('Proxmox.window.TaskViewer', {
+ upid: upid,
+ taskDone: function(success) {
+ me.close();
+ }
+ });
win.show();
- me.close();
}
});
--
2.11.0
More information about the pve-devel
mailing list