mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Merge "ve.ui.MWTransclusionDialog: Remove unneeded code re-setting insert label"
This commit is contained in:
commit
685533c86f
|
@ -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 } );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue