Fix Kalender-Suche: Sync-Fehler sichtbar, force-sync beim Kalender-Refresh, Backdrop opak
This commit is contained in:
@@ -1859,9 +1859,9 @@ function GlobalSearch({ setActive, setDevToolsNav, mobile }) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Backdrop zum Schließen */}
|
||||
{/* Backdrop zum Schließen – leicht opak damit Dashboard nicht durchscheint */}
|
||||
{showDropdown && (
|
||||
<div style={{position:'fixed',inset:0,zIndex:8999}} onClick={close}/>
|
||||
<div style={{position:'fixed',inset:0,zIndex:8999,background:'rgba(0,0,0,0.25)'}} onClick={close}/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
@@ -1875,7 +1875,9 @@ function Dashboard({ toast, mobile, setActive, setDevToolsNav, unreadMsgs=0, unr
|
||||
useEffect(() => { const t = setInterval(() => setNow(new Date()), 30000); return () => clearInterval(t); }, []);
|
||||
// Kalender-Events im Hintergrund für die Suche cachen
|
||||
useEffect(() => {
|
||||
api('/search/sync-calendar', { method:'POST', body:{} }).catch(()=>{});
|
||||
api('/search/sync-calendar', { method:'POST', body:{} })
|
||||
.then(r => { if (r.errors?.length) console.warn('[CalendarSync]', r); })
|
||||
.catch(e => console.error('[CalendarSync] Fehler:', e));
|
||||
}, []);
|
||||
return (
|
||||
<div style={{ padding: mobile ? '14px 12px 90px' : '36px 44px', maxWidth:1100 }}>
|
||||
|
||||
Reference in New Issue
Block a user