mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "Stop removal of only template placeholder from transclusion"
This commit is contained in:
commit
c8ab0003f3
|
@ -155,8 +155,13 @@ ve.ui.MWTransclusionDialog.prototype.onBookletLayoutSet = function ( page ) {
|
||||||
!( page instanceof ve.ui.MWTemplatePage || page instanceof ve.ui.MWParameterPage )
|
!( page instanceof ve.ui.MWTemplatePage || page instanceof ve.ui.MWParameterPage )
|
||||||
);
|
);
|
||||||
this.bookletLayout.getOutlineControls().removeButton.toggle( !(
|
this.bookletLayout.getOutlineControls().removeButton.toggle( !(
|
||||||
page instanceof ve.ui.MWParameterPage &&
|
(
|
||||||
page.parameter.isRequired()
|
page instanceof ve.ui.MWParameterPage &&
|
||||||
|
page.parameter.isRequired()
|
||||||
|
) || (
|
||||||
|
this.transclusionModel.getParts().length === 1 &&
|
||||||
|
page instanceof ve.ui.MWTemplatePlaceholderPage
|
||||||
|
)
|
||||||
) );
|
) );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue