@@ -258,9 +258,10 @@ interface Attached {
258258/**
259259 * What a reply made or changed, each a button that finds it on the canvas: blue for a new board
260260 * and green for a rewritten one, as their rings are there. Folded to three rows when there are
261- * more, which a generator rewriting every board makes common.
261+ * more, which a generator rewriting every board makes common. Off when the reply's project is not
262+ * the one in front, whose canvas would not have them.
262263 */
263- function MadeBoards ( { made } : { made : MadeBoard [ ] } ) {
264+ function MadeBoards ( { made, away } : { made : MadeBoard [ ] ; away : boolean } ) {
264265 const list = useRef < HTMLDivElement > ( null ) ;
265266 const [ open , setOpen ] = useState ( false ) ;
266267 const [ folds , setFolds ] = useState ( false ) ;
@@ -279,7 +280,12 @@ function MadeBoards({ made }: { made: MadeBoard[] }) {
279280 key = { m . board }
280281 type = "button"
281282 data-made = { m . status }
282- title = { `Show ${ m . board } on the canvas` }
283+ disabled = { away }
284+ title = {
285+ away
286+ ? `${ m . board } is in another project`
287+ : `Show ${ m . board } on the canvas`
288+ }
283289 onClick = { ( ) =>
284290 window . dispatchEvent (
285291 new CustomEvent ( FOCUS_BOARD , { detail : m . board } ) ,
@@ -1404,7 +1410,7 @@ export function ChatPanel(props: {
14041410 ) ,
14051411 ) }
14061412 { t . end ?. made && t . end . made . length > 0 && (
1407- < MadeBoards made = { t . end . made } />
1413+ < MadeBoards made = { t . end . made } away = { t . project !== project } />
14081414 ) }
14091415 { ! t . end ? (
14101416 < p className = "sp-chat-dim" > Working…</ p >
0 commit comments