close HDMove on taskDone

this triggers the 'destroy' event of the window at the correct time

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-05-07 14:10:12 +02:00 committed by Wolfgang Bumiller
parent c6dd867828
commit 811a06ca65

View File

@ -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();
}
});