mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Show "no parameters" message only when there are no parameters"
This commit is contained in:
commit
e50c0af860
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue