Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete bound output code if deleting element #213

Merged
merged 17 commits into from
Oct 11, 2023

Conversation

nstrayer
Copy link
Collaborator

Previously if you deleted an output like a plot that had some render code in the server associated with it, that server code would be left in the server without and bindings. This PR adds logic to detect when deleting a node is about to create this orphaned output code and asks if the user wants to delete that code or leave it. This really helps in the situation where you start with a template that has pre-defined output code that you almost definitely don't want.

@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for shinyuieditor-storybook ready!

Name Link
🔨 Latest commit 445e3fa
🔍 Latest deploy log https://app.netlify.com/sites/shinyuieditor-storybook/deploys/6526a7b283ca7c00088b165c
😎 Deploy Preview https://deploy-preview-213--shinyuieditor-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nstrayer nstrayer merged commit 324f029 into main Oct 11, 2023
15 of 16 checks passed
@nstrayer nstrayer deleted the delete-orphaned-output-code branch October 11, 2023 13:51
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.

Deleting an output with associated server code should prompt user about deleting server code
1 participant