mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Disable parameter add icon when there's no transclusion parts"
This commit is contained in:
commit
0dad360036
|
@ -165,6 +165,10 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
|
|||
|
||||
ve.ui.MWTransclusionDialog.super.prototype.onReplacePart.call( this, removed, added );
|
||||
|
||||
if ( this.transclusionModel.getParts().length === 0 ) {
|
||||
this.addParameterButton.setDisabled( true );
|
||||
}
|
||||
|
||||
single = this.isSingleTemplateTransclusion();
|
||||
label = ve.msg( 'visualeditor-dialog-action-insert' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue