mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "Update the delete button's feature flag in the tranclusion context menu"
This commit is contained in:
commit
c2b7b7afcb
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue