waveterm/frontend/app
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
..
asset workspace switcher + new elements (in storybook) (#1148) 2024-10-27 13:22:06 -07:00
block Fix iconbutton styling (#1538) 2024-12-16 18:31:01 -08:00
element Web Search (#1631) 2024-12-29 09:58:11 -08:00
hook browser view (#1005) 2024-10-17 14:34:02 -07:00
modals Make TOS modal buttons larger (#1573) 2024-12-19 12:16:03 -08:00
notification Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
store Deleting current workspace switches to another instead of closing [ backend implementation ] (#1623) 2024-12-29 09:58:29 -08:00
tab Allow empty workspace name while editing workspace (#1592) 2024-12-20 08:55:28 -08:00
view Web Search (#1631) 2024-12-29 09:58:11 -08:00
workspace Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
app-bg.tsx browser view (#1005) 2024-10-17 14:34:02 -07:00
app.scss wsh run (#1376) 2024-12-04 14:16:50 -08:00
app.tsx new utility fn, deepCompareReturnPrev. use for settings prefix atom to do a deep equal (#1630) 2024-12-26 11:09:48 -08:00
mixins.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
reset.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
theme.scss Search box component (#1579) 2024-12-19 13:49:48 -08:00