mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-07 18:27:45 +02:00
[eric] providers: health pill ignores clickaway (first canvas click was silently killing it)
This commit is contained in:
@@ -28,7 +28,8 @@ export default function ProviderHealthToast() {
|
||||
<Snackbar
|
||||
open={open && dead.length > 0}
|
||||
autoHideDuration={null}
|
||||
onClose={() => dispatch(hideProviderHealthToast())}
|
||||
// Clickaway would kill the pill on the user's first canvas click, before they read it; only the X or Reconnect dismisses.
|
||||
onClose={(event, reason) => { if (reason !== 'clickaway') dispatch(hideProviderHealthToast()); }}
|
||||
anchorOrigin={{ vertical: 'bottom', horizontal: 'left' }}
|
||||
>
|
||||
<Alert
|
||||
|
||||
Reference in New Issue
Block a user