mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
d77728bd4f
Depends-On: I385dca1d95033961d3844e888521750443e49c95 Change-Id: Ic515b41863bcf2ac4daa0272f67e1d30238a4b85
26 lines
810 B
JavaScript
26 lines
810 B
JavaScript
/**
|
|
* Sidebar item for a template which has yet to be added, its name is not yet
|
|
* given.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.MWTransclusionOutlinePartWidget
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.MWTemplatePlaceholderModel} placeholder
|
|
*/
|
|
ve.ui.MWTransclusionOutlinePlaceholderWidget = function VeUiMWTransclusionOutlinePlaceholderWidget( placeholder ) {
|
|
var label = placeholder.getTransclusion().isSingleTemplate() ?
|
|
ve.msg( 'visualeditor-dialog-transclusion-template-search' ) :
|
|
ve.msg( 'visualeditor-dialog-transclusion-add-template' );
|
|
|
|
// Parent constructor
|
|
ve.ui.MWTransclusionOutlinePlaceholderWidget.super.call( this, placeholder, {
|
|
icon: 'puzzle',
|
|
label: label
|
|
} );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ui.MWTransclusionOutlinePlaceholderWidget, ve.ui.MWTransclusionOutlinePartWidget );
|