mediawiki-extensions-Visual.../modules/ve-mw
Bartosz Dziewoński f491196559 Fix reporting of loading errors from ArticleTarget#loadSuccess
It was broken on desktop and on mobile, but for different reasons:

Desktop: In change 5f1c68945d,
I removed some code from DesktopArticleTarget that was checking for
`typeof errorDetails === 'string'`. I thought it was unused, but it
was actually needed for this code.

Mobile: overlay.reportError() doesn't work here: that method displays
the error inside the save panel, which is not visible at this point.

This is now solved by treating those errors as if they were API errors,
which is something we were already doing in ArticleTargetSaver.

Change-Id: I5207836f56d65171b1240cef02fc17b9956036ef
2020-02-12 22:18:40 +01:00
..
ce Merge "Change gallery structure to match Parsoid" 2020-02-05 00:52:51 +00:00
dm Fix handling of pasted internal red links 2020-02-07 17:41:19 +01:00
init Fix reporting of loading errors from ArticleTarget#loadSuccess 2020-02-12 22:18:40 +01:00
preinit ArticleTargetSaver: Fix error messages 2020-02-12 22:18:40 +01:00
tests Fix handling of pasted internal red links 2020-02-07 17:41:19 +01:00
themes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ui Merge "Use mw.Api#getErrorMessage instead of custom handling" 2020-01-10 14:22:14 +00:00
ve.MWutils.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00