Drafts when editing projects
To fix #600 (closed), the draft functionality was disabled when editing projects. There are a few approaches that can be used to restore this functionality:
- Save drafts on a project level and restore them when the edit page is loaded again
- This would cause issues when a project is edited on one machine A without saving, then edited on machine B, then edited again on machine A. The edits on machine B would be lost if the draft is restored directly.
- Save drafts on a project level but discard unsubmitted drafts when the project is edited on another machine
- This could be done using etags (or even better - a hash of the text of the description).
- It may not be the best to simply delete drafts of an old version when a project is edited on another machine. Perhaps a warning should be shown in this case, along with the ability to restore the old draft.
In all cases, care must be taken to clear old drafts from the local storage to avoid keeping old unused entries.