Skip to content

Delete a tab when it's out of blocks, cascade to window#1374

Merged
sawka merged 1 commit into
mainfrom
evan/delete-block-cascade
Dec 3, 2024
Merged

Delete a tab when it's out of blocks, cascade to window#1374
sawka merged 1 commit into
mainfrom
evan/delete-block-cascade

Conversation

@esimkowitz
Copy link
Copy Markdown
Contributor

Updates DeleteBlock to close its parent tab if the tab has no more blocks. This will also cascade to close the workspace if it no longer has any tabs, same for window.

I had to move some block-related functionality around on the backend.

@sawka sawka merged commit 90e31df into main Dec 3, 2024
@sawka sawka deleted the evan/delete-block-cascade branch December 3, 2024 17:38
xxyy2024 pushed a commit to xxyy2024/waveterm_aipy that referenced this pull request Jun 24, 2025
…1374)

Updates `DeleteBlock` to close its parent tab if the tab has no more
blocks. This will also cascade to close the workspace if it no longer
has any tabs, same for window.

I had to move some block-related functionality around on the backend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants