Commit 27f2e10f authored by Dietmar Maurer's avatar Dietmar Maurer

use new TaskProgress feature

parent 1c753859
......@@ -9,6 +9,7 @@ Ext.define('PVE.window.Snapshot', {
if (descr) {
params.description = descr;
}
PVE.Utils.API2Request({
params: params,
url: '/nodes/' + me.nodename + '/qemu/' + me.vmid + "/snapshot",
......@@ -19,10 +20,8 @@ Ext.define('PVE.window.Snapshot', {
},
success: function(response, options) {
var upid = response.result.data;
// we do not show task viewer for now
//var win = Ext.create('PVE.window.TaskViewer', { upid: upid });
//win.show();
var win = Ext.create('PVE.window.TaskProgress', { upid: upid });
win.show();
me.close();
}
});
......
......@@ -146,6 +146,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
},
failure: function (response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
success: function(response, options) {
var upid = response.result.data;
var win = Ext.create('PVE.window.TaskProgress', { upid: upid });
win.show();
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment