Feature: Offline-Stufen 1+2+3 — Timeout, API-Cache, Write-Queue (IndexedDB + BackgroundSync) — SW by-v509, APP_VER 486

This commit is contained in:
rene 2026-04-29 19:13:04 +02:00
parent ad3b73d687
commit 2411151b17
4 changed files with 268 additions and 31 deletions

View file

@ -58,6 +58,14 @@ const API = (() => {
throw new APIError(message, response.status, isOffline ? 'network' : data?.code);
}
// SW hat die Anfrage in die Offline-Queue eingereiht
if (data?._queued) {
if (typeof UI !== 'undefined' && UI.toast) {
UI.toast.info('Offline gespeichert — wird automatisch synchronisiert');
}
return data;
}
return data;
}