mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-24 13:06:50 +00:00
ui: schedule sim: clear previous simulation output on error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7518576735
commit
d3eacb83f8
@ -22,7 +22,10 @@ Ext.define('PVE.window.ScheduleSimulator', {
|
||||
schedule,
|
||||
iterations,
|
||||
},
|
||||
failure: response => Ext.Msg.alert(gettext('Error'), response.htmlStatus),
|
||||
failure: response => {
|
||||
me.lookup('grid').getStore().setData([]);
|
||||
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||
},
|
||||
success: function(response) {
|
||||
let schedules = response.result.data;
|
||||
me.lookup('grid').getStore().setData(schedules);
|
||||
|
Loading…
Reference in New Issue
Block a user