demarches-normaliennes/app/javascript/new_design
Pierre de La Morinerie e1909ed29f brouillon: redirect to sign-in when disconnected
There are two cases where the draft auto-save might fail because the
user is no longer authenticated:

- The user signed-out in another tab,
- The brower quit and re-opened, so the Session cookie expired.

In both cases, the auto-save will never succeed until the user
authenticates again, so displaying a "Retry" button is cruel.

Moreover, in plus of all auto-save requests failing with a small error,
the actual hard failure only occurs after filling all the form and
trying to submit it. Then the user is redirected to the sign-in page –
but all their changes are lost.

Instead, we now redirect to the sign-in page on the first 401 error
during the auto-save, let the user sign-in, and then redirect back to
the form.
2021-07-22 11:58:02 +02:00
..
champs autosave: trigger an autosave after removing a row 2020-08-25 15:45:49 +02:00
dossiers brouillon: redirect to sign-in when disconnected 2021-07-22 11:58:02 +02:00
avis.js [fix #2969] use JS replace semicolon by comma in the list email 2018-12-03 12:59:40 +01:00
chartkick.js Add a wrapper to catch chart rendering before chartkick is loaded 2020-10-07 11:40:07 +02:00
dropdown.js Improuve ComboMultipleDropdownList style 2021-04-28 12:54:45 +02:00
form-validation.js Refactor form validation helpers 2018-10-10 14:55:28 +02:00
messagerie.js remove unused javascript 2020-10-07 11:39:57 +02:00
procedure-context.js Run load scripts after ujs responces 2019-08-13 17:03:55 +01:00
procedure-form.js procedure: make the layout more similar to the mockup 2019-10-31 10:27:19 +01:00
spinner.js Use @utils instead of jQuery 2018-10-10 14:55:28 +02:00
state-button.js implementation du systeme de PJ de motivation 2019-05-07 08:54:29 +02:00
support.js convert to es6 classes 2020-09-22 16:09:15 +02:00
user-sign_up.js sign_up: fix suggestions error when navigating away 2019-12-19 17:45:14 +01:00