prune sim: mask simulation options during update

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-10-05 16:56:51 +02:00
parent 922812ed37
commit 5ad65cc252

View File

@ -382,7 +382,6 @@ Ext.onReady(function() {
};
let hours, minutes;
try {
hours = matchTimeSpec(hourSpec, 0, 23);
minutes = matchTimeSpec(minuteSpec, 0, 59);
@ -390,17 +389,23 @@ Ext.onReady(function() {
Ext.Msg.alert('Error', err);
return;
}
let formEl = view.down('form')?.el;
formEl?.mask(gettext('Please wait...'), 'x-mask-loading');
let backups = me.populateFromSchedule(
params['schedule-weekdays'],
hours,
minutes,
params.numberOfWeeks,
);
setTimeout(() => { // run re-calculation async afterwards to allow masking
let backups = me.populateFromSchedule(
params['schedule-weekdays'],
hours,
minutes,
params.numberOfWeeks,
);
me.pruneSelect(backups, params);
me.pruneSelect(backups, params);
view.pruneStore.setData(backups);
view.pruneStore.setData(backups);
formEl?.unmask();
}, 1);
},
reloadPrune: function() {