waveterm/pkg
Yacoub 0890475a60
Deleting current workspace switches to another instead of closing [ backend implementation ] (#1623)
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>
2024-12-29 09:58:29 -08:00
..
authkey fix for waveterm environment variables leaking from prod to dev (#1153) 2024-10-27 13:12:41 -07:00
blockcontroller implement tab:preset, and increase active tab opacity (#1439) 2024-12-09 14:48:16 -08:00
docsite Fix docsite path error in docsite.go (#1272) 2024-11-12 12:30:37 -08:00
eventbus Delete a tab when it's out of blocks, cascade to window (#1374) 2024-12-03 09:38:46 -08:00
filestore fix blockstore panic (#1570) 2024-12-19 10:35:50 -08:00
gogen update all gopkg imports (#330) 2024-09-05 14:25:45 -07:00
ijson metadata updates (frontend typing) (#174) 2024-07-30 12:33:28 -07:00
panichandler panic handlers everywhere (#1327) 2024-11-20 18:05:13 -08:00
remote fix: do not error out if ssh config is empty (#1632) 2024-12-26 22:52:47 -08:00
service Deleting current workspace switches to another instead of closing [ backend implementation ] (#1623) 2024-12-29 09:58:29 -08:00
shellexec fix: unquote zdotdir for starting zsh in wsl (#1574) 2024-12-19 12:43:22 -08:00
telemetry activity update + dont allow empty workspace names (#1393) 2024-12-05 10:35:54 -08:00
trimquotes SSH Agent Integration (#334) 2024-09-06 13:19:38 -07:00
tsgen Workspaces are back! (#1282) 2024-12-02 10:56:56 -08:00
userinput SSH without using WSH (#1355) 2024-11-27 16:52:00 -08:00
util Entirely Internal Connection (#1610) 2024-12-23 15:12:14 -08:00
vdom misc v0.9.3 fixes -- numToString, block counts, fix docsite images/video (#1354) 2024-11-25 18:07:29 -08:00
waveai Remove fatals, don't know why I added these (#1642) 2024-12-27 17:39:42 -05:00
waveapp panic handlers everywhere (#1327) 2024-11-20 18:05:13 -08:00
wavebase fix for waveterm environment variables leaking from prod to dev (#1153) 2024-10-27 13:12:41 -07:00
waveobj transparent terminal themes (#1561) 2024-12-19 10:41:28 -08:00
wcloud fix for waveterm environment variables leaking from prod to dev (#1153) 2024-10-27 13:12:41 -07:00
wconfig Allow users to close windows without confirming, delete last window (#1598) 2024-12-20 14:02:08 -08:00
wcore Deleting current workspace switches to another instead of closing [ backend implementation ] (#1623) 2024-12-29 09:58:29 -08:00
web panic handlers everywhere (#1327) 2024-11-20 18:05:13 -08:00
wps Workspace app menu (#1423) 2024-12-06 15:33:00 -08:00
wshrpc fix remote file stream function (#1620) 2024-12-26 10:23:28 -08:00
wshutil fix blockstore panic (#1570) 2024-12-19 10:35:50 -08:00
wsl fix: changes for nowsh compatibility with wsl (#1422) 2024-12-06 14:19:19 -08:00
wstore Squash some leftover bugs (#1495) 2024-12-11 12:52:15 -08:00