Restore a way to delete transclusions on mobile

For most nodes, isDeletable() returns false on desktop and true on
mobile. Change e0bbf0b979 meant to
change the desktop version to depend on the new config settings, but
accidentally changed mobile too.

Bug: T298828
Change-Id: I8ec5e8031a27eee18c16dfcd267937cc76722c50
This commit is contained in:
Bartosz Dziewoński 2022-01-20 22:39:55 +01:00
parent 835464802a
commit 65d723b62b

View file

@ -68,7 +68,7 @@ ve.ui.MWTransclusionContextItem.static.isCompatibleWith =
*/
ve.ui.MWTransclusionContextItem.prototype.isDeletable = function () {
var veConfig = mw.config.get( 'wgVisualEditorConfig' );
return veConfig.transclusionDialogBackButton;
return veConfig.transclusionDialogBackButton || ve.ui.MWTransclusionContextItem.super.prototype.isDeletable.call( this );
};
/**