fix(ui): poll import task list during active batch so Recent Import Tasks doesn't sit stale
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -57,7 +57,12 @@ function startPolling() {
|
|||||||
pollId = setInterval(() => {
|
pollId = setInterval(() => {
|
||||||
if (!document.hidden) {
|
if (!document.hidden) {
|
||||||
system.refreshStats()
|
system.refreshStats()
|
||||||
if (tab.value === 'import') importStore.refreshStatus()
|
if (tab.value === 'import') {
|
||||||
|
importStore.refreshStatus()
|
||||||
|
// Refresh the task list while a batch is in flight so the UI
|
||||||
|
// doesn't sit stale next to a ticking imported/skipped counter.
|
||||||
|
if (importStore.activeBatch) importStore.loadTasks(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 5000)
|
}, 5000)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user