fix: Dashboard-Signatur ohne Default, längerer Timeout für Media-Navigation

This commit is contained in:
2026-06-18 16:58:55 +02:00
parent c3871c96ee
commit 79ddbf2f21

View File

@@ -1903,7 +1903,7 @@ function GlobalSearch({ setActive, setDevToolsNav, mobile }) {
} }
function Dashboard({ toast, mobile, setActive, setDevToolsNav, unreadMsgs=0, unreadBoard=0, unreadPromoted=0, onBoardRead, unreadChangelog=0, onChangelogRead, unackedFavs=0, user }) { function Dashboard({ toast, mobile, setActive, setDevToolsNav, unreadMsgs=0, unreadBoard=0, unreadPromoted=0, onBoardRead, unreadChangelog=0, onChangelogRead, unackedFavs, user }) {
const [now, setNow] = useState(new Date()); const [now, setNow] = useState(new Date());
const [showBoard, setShowBoard] = useState(false); const [showBoard, setShowBoard] = useState(false);
const [showChangelog, setShowChangelog] = useState(false); const [showChangelog, setShowChangelog] = useState(false);
@@ -1986,11 +1986,11 @@ function Dashboard({ toast, mobile, setActive, setDevToolsNav, unreadMsgs=0, unr
<button onClick={()=>{ <button onClick={()=>{
if (unackedFavs?.isAdmin) { if (unackedFavs?.isAdmin) {
setActive('media'); setActive('media');
setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),80); setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),200);
} else { } else {
setUnackedFavs({count:0,isAdmin:false}); // Badge sofort ausblenden setUnackedFavs({count:0,isAdmin:false});
setActive('media'); setActive('media');
setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),80); setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),200);
} }
}} style={{ }} style={{
background:'rgba(245,158,11,0.12)', border:'1px solid rgba(245,158,11,0.35)', background:'rgba(245,158,11,0.12)', border:'1px solid rgba(245,158,11,0.35)',