mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-06 19:18:22 +01:00
0890475a60
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(); } } }); ``` ![unknown_2024 12 26-17 05](https://github.com/user-attachments/assets/9c8455e5-b71c-479d-a15c-ee5c99c7a909) ![unknown_2024 12 26-17 06](https://github.com/user-attachments/assets/5dbf63bc-1ffd-4088-abc0-7c02fac9af94) --------- Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com> |
||
---|---|---|
.. | ||
authkey | ||
blockcontroller | ||
docsite | ||
eventbus | ||
filestore | ||
gogen | ||
ijson | ||
panichandler | ||
remote | ||
service | ||
shellexec | ||
telemetry | ||
trimquotes | ||
tsgen | ||
userinput | ||
util | ||
vdom | ||
waveai | ||
waveapp | ||
wavebase | ||
waveobj | ||
wcloud | ||
wconfig | ||
wcore | ||
web | ||
wps | ||
wshrpc | ||
wshutil | ||
wsl | ||
wstore |