Merge "Fix forgotten "setPage" property because of merge conflict"

This commit is contained in:
jenkins-bot 2022-08-01 09:37:40 +00:00 committed by Gerrit Code Review
commit ee760ee2a6

View file

@ -145,14 +145,14 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.highlightItem = funct
*/
ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.markParameterAsUnused = function ( paramName ) {
// There is no OO.ui.SelectWidget.unselectItemByData(), we need to do this manually
/** @type {ve.ui.MWTransclusionOutlineParameterWidget} */
var item = paramName ? this.findItemFromData( paramName ) : null;
if ( item ) {
item.setSelected( false );
paramName = paramName || null;
// An unused parameter can't be the active (set) one; it doesn't exist in the content pane
if ( this.itemSet === paramName ) {
this.itemSet = null;
item.setParameter( false );
if ( this.activeParameter === paramName ) {
this.activeParameter = null;
item.toggleActivePageIndicator( false );
}
}
};