Merge "Update the delete button's feature flag in the tranclusion context menu"

This commit is contained in:
jenkins-bot 2021-05-21 10:20:44 +00:00 committed by Gerrit Code Review
commit c2b7b7afcb
2 changed files with 2 additions and 2 deletions

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.transclusionDialogNewSidebar;
return veConfig.transclusionDialogBackButton;
};
/**

View file

@ -105,7 +105,7 @@ ve.ui.MWTemplatePage = function VeUiMWTemplatePage( template, name, config ) {
.addClass( 've-ui-mwTemplatePage' )
.append( this.infoFieldset.$element );
if ( !config.isReadOnly ) {
if ( !veConfig.transclusionDialogNewSidebar ) {
if ( !veConfig.transclusionDialogBackButton ) {
this.$element.append( this.removeButton.$element );
}
this.$element.append( this.$more );