mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
3656297843
no issue - fixes bug where multiple posts were created starting with one char and growing until the new->edit transition completed, e.g. posts with content such as `a`, `ab`, `abcd` were created in quick succession - moves old `_savePromise` body into the `save` task - call the `save` task instead of the old `_savePromise` so that concurrency is handled properly - fixes odd behaviour with the "Are you sure you want to leave?" modal appearing too often - it's now aware of on-going or scheduled saves and will wait for those to complete before transitioning - move all transition abort/save/retry handling into `toggleLeaveEditorModal` method - check for a running save, wait for it to finish then retry the transition - check for a scheduled autosave, cancel it if present and perform an immediate autosave then retry the transition - don't attempt new->edit transition on successful save of new post if we're already waiting for a different transition - once the new->edit transition has completed, if the post body content has changed schedule an autosave manually so that the user doesn't need to type something again to save what they assume is already saved - remove debounced slug generation/save on type of title field in favour of generation and save on focus out which plays a lot nicer with the new transition autosave behaviour |
||
---|---|---|
.. | ||
acceptance | ||
helpers | ||
integration | ||
unit | ||
.eslintrc.js | ||
index.html | ||
test-helper.js |