Compare commits

...

2 Commits

Author SHA1 Message Date
librelad
b1f935dc3b Merge claude/1 2026-06-25 13:26:51 +01:00
librelad
c48f9f4ffc fix(webui/storage): drop redundant 'Reclaiming space…' toast
Clicking Reclaim space fired two notifications: routeAction → executeTask
already shows the rich 'Reclaim Space task started!' toast (icon + bold
LibrePortal + task link), then _reclaim added a second, plain, iconless
'Reclaiming space…' info toast on top of it. The image-removal path doesn't
double-notify like this. Drop the redundant one — the start toast plus the
completion toast give clean feedback on their own.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
2026-06-25 13:26:51 +01:00

View File

@ -123,8 +123,10 @@ class SystemStoragePage {
if (!window.tasksManager?.router?.routeAction) { if (!window.tasksManager?.router?.routeAction) {
throw new Error('Task system not ready'); throw new Error('Task system not ready');
} }
// routeAction → executeTask already shows the rich "Reclaim
// Space task started!" toast (and a completion toast lands when
// it finishes), so no extra info notification here.
await window.tasksManager.router.routeAction('system_reclaim'); await window.tasksManager.router.routeAction('system_reclaim');
window.notificationSystem?.show?.('Reclaiming space…', 'info');
// The prune runs in the background task processor; re-read // The prune runs in the background task processor; re-read
// usage a couple of times so the numbers settle without a // usage a couple of times so the numbers settle without a
// manual refresh. // manual refresh.