Merge "ve.ui.MWTransclusionDialog: Remove unneeded code re-setting insert label"

This commit is contained in:
jenkins-bot 2018-11-30 17:12:40 +00:00 committed by Gerrit Code Review
commit 685533c86f

View file

@ -159,7 +159,7 @@ ve.ui.MWTransclusionDialog.prototype.onBookletLayoutSet = function ( page ) {
* @inheritdoc
*/
ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added ) {
var single, label;
var single;
ve.ui.MWTransclusionDialog.super.prototype.onReplacePart.call( this, removed, added );
@ -169,13 +169,7 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
}
single = this.isSingleTemplateTransclusion();
label = ve.msg( 'visualeditor-dialog-action-insert' );
this.actions
.setAbilities( { mode: single } )
.forEach( { actions: 'insert' }, function ( action ) {
action.setLabel( label );
} );
this.actions.setAbilities( { mode: single } );
};
/**