mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-19 02:11:47 +01: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> |
||
---|---|---|
.. | ||
blockservice | ||
clientservice | ||
fileservice | ||
objectservice | ||
userinputservice | ||
windowservice | ||
workspaceservice | ||
service.go |