mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Fixed the empty Transclusion Box problem
Bug: T52281 Change-Id: If6ba91497849b5ba311908359fde7f1db82b1fd0
This commit is contained in:
parent
3f6d19a75d
commit
9096ebf7a1
|
@ -167,6 +167,7 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
|
|||
|
||||
if ( this.transclusionModel.getParts().length === 0 ) {
|
||||
this.addParameterButton.setDisabled( true );
|
||||
this.addPart( new ve.dm.MWTemplatePlaceholderModel( this.transclusionModel ) );
|
||||
}
|
||||
|
||||
single = this.isSingleTemplateTransclusion();
|
||||
|
|
Loading…
Reference in a new issue