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

This sets the label to be the same as the default value inherited from
ve.ui.MWTemplateDialog. Looks like it's no longer needed since change
Ia8fb88d3501ffa2c26add4419da5463a926f45d1 (2014).

Change-Id: I1dd40d2428c0221dfdc79e5f34e411b127624eb6
This commit is contained in:
Bartosz Dziewoński 2018-11-29 23:10:56 +01:00
parent fc126c1260
commit a659c4eaea

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 } );
};
/**