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', { ...@@ -9,6 +9,7 @@ Ext.define('PVE.window.Snapshot', {
if (descr) { if (descr) {
params.description = descr; params.description = descr;
} }
PVE.Utils.API2Request({ PVE.Utils.API2Request({
params: params, params: params,
url: '/nodes/' + me.nodename + '/qemu/' + me.vmid + "/snapshot", url: '/nodes/' + me.nodename + '/qemu/' + me.vmid + "/snapshot",
...@@ -19,10 +20,8 @@ Ext.define('PVE.window.Snapshot', { ...@@ -19,10 +20,8 @@ Ext.define('PVE.window.Snapshot', {
}, },
success: function(response, options) { success: function(response, options) {
var upid = response.result.data; var upid = response.result.data;
var win = Ext.create('PVE.window.TaskProgress', { upid: upid });
// we do not show task viewer for now win.show();
//var win = Ext.create('PVE.window.TaskViewer', { upid: upid });
//win.show();
me.close(); me.close();
} }
}); });
......
...@@ -146,6 +146,11 @@ Ext.define('PVE.qemu.SnapshotTree', { ...@@ -146,6 +146,11 @@ Ext.define('PVE.qemu.SnapshotTree', {
}, },
failure: function (response, opts) { failure: function (response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus); 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