]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: schedule sim: clear previous simulation output on error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Jan 2023 09:45:59 +0000 (10:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 20 Jan 2023 09:46:00 +0000 (10:46 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/ScheduleSimulator.js

index f124b0e9bca400afbc8729766592eee940211ce1..c8f8be7a45b79328f2c8f772f26a27b664d49459 100644 (file)
@@ -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);