Skip to content

Conversation

@Jadu07
Copy link
Contributor

@Jadu07 Jadu07 commented Nov 12, 2025

fixes #696

Summary
Prevent the minus button on the canvas from deleting table fields when viewing a read-only diagram. This ensures that non-editable diagram versions remain immutable and protected from accidental data loss.

Solution
Disable the minus button and guard the click handler whenever layout.readOnly is true, ensuring the canvas behavior matches the rest of the editor.

@vercel
Copy link

vercel bot commented Nov 12, 2025

@Jadu07 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
drawdb Ready Ready Preview Comment Nov 13, 2025 5:54am

Copy link
Member

@1ilit 1ilit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@1ilit 1ilit merged commit 9fe82b1 into drawdb-io:main Nov 13, 2025
4 checks passed
ewqazxc pushed a commit to ewqazxc/drawdb that referenced this pull request Nov 14, 2025
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.

Read-only diagram versions allow field deletion from canvas

2 participants