[web] close connection permanently when opening out-of-sync modal (#23148)

* [web] close connection permanently when opening out-of-sync modal

* [web] disable generic forceDisconnected behavior for out-of-sync modal

* [web] hide "disconnected" banner when displaying out of sync modal

GitOrigin-RevId: 133b3e24d94279917298ce7fd5d0a76da2265512
This commit is contained in:
Jakob Ackermann
2025-02-03 09:05:34 +00:00
committed by Copybot
parent cebaebc356
commit 8df7f6772c
6 changed files with 28 additions and 15 deletions
@@ -27,7 +27,9 @@ export function Alerts() {
return createPortal(
<>
{connectionState.forceDisconnected ? (
{connectionState.forceDisconnected &&
// hide "disconnected" banner when displaying out of sync modal
connectionState.error !== 'out-of-sync' ? (
<OLNotification
type="error"
content={<strong>{t('disconnected')}</strong>}