Merge "Disable parameter add icon when there's no transclusion parts"

This commit is contained in:
jenkins-bot 2014-10-27 20:39:46 +00:00 committed by Gerrit Code Review
commit 0dad360036

View file

@ -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' );