Ghost/ghost/admin/app/mixins
Kevin Ansfield 3656297843 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800)
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
2017-07-22 10:25:00 -04:00
..
body-event-listener.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
current-user-settings.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
dropdown-mixin.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
editor-base-controller.js 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800) 2017-07-22 10:25:00 -04:00
editor-base-route.js 🐛 fix duplicate posts bug, more intelligent autosave when transitioning (#800) 2017-07-22 10:25:00 -04:00
infinite-scroll.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
pagination.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
settings-menu-component.js 🎨 convert post-settings-menu into a component (#137) 2017-03-10 14:30:01 +00:00
shortcuts-route.js remove zen styling (#160) 2016-07-31 20:35:19 +01:00
shortcuts.js remove zen styling (#160) 2016-07-31 20:35:19 +01:00
slug-url.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
style-body.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
text-input.js 🐛 fix enter key not working in text inputs/areas (#771) 2017-07-10 19:09:11 +07:00
unauthenticated-route-mixin.js 🎨 remove usage of ghost's {{asset}} helper in index.html (#574) 2017-03-14 17:04:46 +01:00
validation-engine.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
validation-state.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00