Skip to content

When unlocking a project to save changes, you lose your changes. #1051

@sutaburosu

Description

@sutaburosu

Describe the bug
I lost my changes when trying to save, due to the "Lock project" function.

I had a saved sketch which was locked to prevent accidental changes. I had not pinned library versions, so it compiled today instead of serving a cached version. I saw build failures due to library updates.

To Reproduce
After editing the project to bring it up-to-date with ~6-years of library changes, I pressed "Save" which said something like "Cannot save: sketch is locked". I visited the menu and unlocked the project which refreshed the page, losing my changes.

Expected behavior
At least, there should be a "Leaving this page will lose your changes" dialogue box from the browser, similar to what I get when trying to close a tab with unsaved changes.

Much love to you and your family, Uri. ❤️

PS: I love that the "Save" button is greyed out, but if you click it it gives the "Project is locked for changes" message. That is a nice touch, and it was what reminded me of the possibility of locking a project.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions