This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Sam Saffron c5e67726fd FIX: under some conditions draft would say it was saving when not
This is a major change to draft internals. Previously there were quite a
few cases where the draft system would say "draft saved", when in fact
we just skipped saving.

This commit ensures the draft system deals with draft ownership handover in
a predictable way.

For example:

- Window 1 editing draft
- Window 2 editing same draft at the same time

Previously we would allow window 1 and 2 to just fight on the same draft
each window overwriting the same draft over an over.

This commit introduces an ownership concept where either window 1 or 2 win
and user is prompted on the loser window to reload screen to correct the issue

This also corrects edge cases where a user could have multiple browser windows
open and posts in 1 window, later to post in the second window. Previously
drafts would break in the second window, this corrects it.
2019-10-31 17:15:58 +11:00
..
adapters DEV: Support custom server-side names in rest models (#8265) 2019-10-30 15:25:42 +00:00
components DEV: run files through prettier 2019-10-31 10:18:29 +11:00
controllers DEV: run files through prettier 2019-10-31 10:18:29 +11:00
helpers FIX: Correctly escape category description text (#8107) 2019-10-01 12:04:39 -04:00
initializers Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
lib Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
mixins DEV: run files through prettier 2019-10-31 10:18:29 +11:00
models FIX: under some conditions draft would say it was saving when not 2019-10-31 17:15:58 +11:00
pre-initializers REFACTOR: Move app-events:main to service:app-events (#8152) 2019-10-04 10:06:08 -04:00
raw-views DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
routes DEV: Tag group improvements (#8252) 2019-10-30 16:57:13 +01:00
services DEV: Import EmberObject rather than global variable (#8256) 2019-10-29 14:23:50 -05:00
templates DEV: Import every instance of Ember.computed function (#8267) 2019-10-30 15:28:29 -05:00
widgets Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
mapping-router.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00