mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 22:16:15 +00:00
58757d4e3e
When the user is saving their edit, we want to ensure that they understand how it will be attributed. If the user gets logged out or logs in in another tab, we want to display a message about it before saving. Instead of manually managing tokens and handling the 'badtoken' error to detect this, use the 'assert'/'assertuser' parameters for the API to detect it for us. Thanks to this we can rely on automatic retrying for 'badtoken' errors in mw.Api#postWithToken. It will be possible to share some of this code with other extensions that already use ArticleTargetSaver, namely DiscussionTools, now that it doesn't need to manage tokens for VisualEditor. Bug: T245327 Depends-On: I485f99e1f5f493262b0c9af22370da01adf1e09c Change-Id: I37f8e89b6d92c419d1b6569891612256342f8139 |
||
---|---|---|
.. | ||
ve.init.mw.CollabTarget.css | ||
ve.init.mw.CollabTarget.init.js | ||
ve.init.mw.CollabTarget.js | ||
ve.init.mw.DesktopCollabTarget.js | ||
ve.init.mw.MobileCollabTarget.js | ||
ve.ui.MWExportWikitextDialog.js |