feat(sync): Frontend pusht Aenderungen und laedt Server-Stand beim Start

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Kenearos 2026-07-07 15:59:48 +02:00
parent 787bc1416b
commit 67a3f4b546
4 changed files with 23 additions and 2 deletions

6
app.js
View file

@ -1230,7 +1230,11 @@ class DienstplanApp {
// Initialize app when DOM is ready
let app;
document.addEventListener('DOMContentLoaded', () => {
document.addEventListener('DOMContentLoaded', async () => {
if (window.DataSync) {
try { await window.DataSync.boot(); }
catch (e) { console.error('Sync-Boot fehlgeschlagen, App laeuft lokal weiter:', e); }
}
app = new DienstplanApp();
window.app = app;
});