VE integration: Remove "unrecoverable" errors

Bug: T307330
Depends-On: I9680cc416da5b27881aeb3502f506dcb5d4bb71f
Change-Id: I80a0822b048d88c71f722e012bb250b53dce6155
This commit is contained in:
Bartosz Dziewoński 2022-07-19 21:40:22 +02:00
parent 3cb9ed9109
commit 1814e4ee22

View file

@ -14,11 +14,8 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
}; };
ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) { ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) {
// Handle spam blacklist error from Extension:SpamBlacklist // Handle errors from Extension:SpamBlacklist
target.showSaveError( target.showSaveError( target.extractErrorMessages( data ) );
target.extractErrorMessages( data ),
false // prevents reapply
);
// Emit event for tracking. TODO: This is a bad design // Emit event for tracking. TODO: This is a bad design
target.emit( 'saveErrorSpamBlacklist' ); target.emit( 'saveErrorSpamBlacklist' );
}; };