Merge "Show "no parameters" message only when there are no parameters"

This commit is contained in:
jenkins-bot 2022-08-03 09:43:50 +00:00 committed by Gerrit Code Review
commit e50c0af860

View file

@ -38,7 +38,7 @@ ve.ui.MWTransclusionOutlineTemplateWidget = function VeUiMWTransclusionOutlineTe
if ( parameterNames.length ) {
this.initializeParameterList();
this.parameterList.addItems( parameterNames.map( this.createCheckbox.bind( this ) ) );
} else {
} else if ( !canFilter ) {
this.$noParametersNote = $( '<div>' )
.text( ve.msg( 'visualeditor-dialog-transclusion-no-template-parameters' ) )
.addClass( 've-ui-mwTransclusionOutlineTemplateWidget-no-template-parameters' );