@@ -265,9 +265,10 @@ interface Attached {
265265/**
266266 * What a reply made or changed, each a button that finds it on the canvas: blue for a new board
267267 * and green for a rewritten one, as their rings are there. Folded to three rows when there are
268- * more, which a generator rewriting every board makes common.
268+ * more, which a generator rewriting every board makes common. Off when the reply's project is not
269+ * the one in front, whose canvas would not have them.
269270 */
270- function MadeBoards ( { made } : { made : MadeBoard [ ] } ) {
271+ function MadeBoards ( { made, away } : { made : MadeBoard [ ] ; away : boolean } ) {
271272 const list = useRef < HTMLDivElement > ( null ) ;
272273 const [ open , setOpen ] = useState ( false ) ;
273274 const [ folds , setFolds ] = useState ( false ) ;
@@ -286,7 +287,12 @@ function MadeBoards({ made }: { made: MadeBoard[] }) {
286287 key = { m . board }
287288 type = "button"
288289 data-made = { m . status }
289- title = { `Show ${ m . board } on the canvas` }
290+ disabled = { away }
291+ title = {
292+ away
293+ ? `${ m . board } is in another project`
294+ : `Show ${ m . board } on the canvas`
295+ }
290296 onClick = { ( ) =>
291297 window . dispatchEvent (
292298 new CustomEvent ( FOCUS_BOARD , { detail : m . board } ) ,
@@ -1429,7 +1435,7 @@ export function ChatPanel(props: {
14291435 ) ,
14301436 ) }
14311437 { t . end ?. made && t . end . made . length > 0 && (
1432- < MadeBoards made = { t . end . made } />
1438+ < MadeBoards made = { t . end . made } away = { t . project !== project } />
14331439 ) }
14341440 { ! t . end ? (
14351441 < p className = "sp-chat-dim" > Working…</ p >
0 commit comments