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

Mark new extension elements as dirty in the page editor #1705

Merged
merged 1 commit into from Oct 20, 2021

Conversation

BLoe
Copy link
Collaborator

@BLoe BLoe commented Oct 20, 2021

This is a tiny change that simply marks new extension elements as "unsaved" or "dirty" in the page editor state. This adds the red "unsaved" icon in the list on the sidebar, just like if there were changes to a previously-saved element. I think this change makes sense because anything with the icon means it will lose changes if you reload the pixiebrix extension frame. This happens with new elements as well, so they should also be marked with the icon.

@twschiller twschiller merged commit 38d364e into main Oct 20, 2021
@twschiller twschiller deleted the feature/mark-unsaved-new-element branch October 20, 2021 22:49
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.

None yet

2 participants