Commit 5d6cb786 authored by Dietmar Maurer's avatar Dietmar Maurer

refresh task output when task is running

parent 39e68b2b
...@@ -75,6 +75,9 @@ Ext.define('PVE.window.TaskViewer', { ...@@ -75,6 +75,9 @@ Ext.define('PVE.window.TaskViewer', {
method: 'DELETE', method: 'DELETE',
failure: function(response, opts) { failure: function(response, opts) {
Ext.Msg.alert('Error', response.htmlStatus); Ext.Msg.alert('Error', response.htmlStatus);
},
callback: function() {
store.load();
} }
}); });
}; };
...@@ -105,6 +108,9 @@ Ext.define('PVE.window.TaskViewer', { ...@@ -105,6 +108,9 @@ Ext.define('PVE.window.TaskViewer', {
if (status === 'stopped') { if (status === 'stopped') {
statstore.stopUpdate(); statstore.stopUpdate();
} }
if (status === 'running') {
store.load();
}
stop_btn1.setDisabled(status !== 'running'); stop_btn1.setDisabled(status !== 'running');
stop_btn2.setDisabled(status !== 'running'); stop_btn2.setDisabled(status !== 'running');
...@@ -131,12 +137,11 @@ Ext.define('PVE.window.TaskViewer', { ...@@ -131,12 +137,11 @@ Ext.define('PVE.window.TaskViewer', {
features: [ {ftype: 'selectable'}], features: [ {ftype: 'selectable'}],
store: store, store: store,
stateful: false, stateful: false,
//tbar: [ 'test' ],
verticalScrollerType: 'paginggridscroller', verticalScrollerType: 'paginggridscroller',
loadMask: true,
disableSelection: true, disableSelection: true,
invalidateScrollerOnRefresh: false, invalidateScrollerOnRefresh: false,
viewConfig: { viewConfig: {
loadMask: false,
trackOver: false, trackOver: false,
stripeRows: false stripeRows: false
}, },
......
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