mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-04-01 17:57:31 +02:00
I did not mean to close the previous pr, anyway i tried to implement what you suggested, the backend now does most of it and DeleteWorkspace will return an unclaimed id and avoid closing the window. ```go const moveToNewWorkspace = await WorkspaceService.DeleteWorkspace(workspaceId) console.log("delete-workspace done", workspaceId, ww?.waveWindowId); if (ww?.workspaceId == workspaceId){ if ( workspaceList?.length > 1 ) { await ww.switchWorkspace(moveToNewWorkspace) } else { console.log("delete-workspace closing window", workspaceId, ww?.waveWindowId); ww.destroy(); } } }); ```   --------- Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com> |
||
---|---|---|
.. | ||
block.go | ||
layout.go | ||
wcore.go | ||
window.go | ||
workspace.go |