2018-09-26 12:49:10 +00:00
|
|
|
/*!
|
2014-08-27 15:44:07 +00:00
|
|
|
* VisualEditor user interface MWRequiredParamBlankConfirmDialog class.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2014-08-27 15:44:07 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dialog for letting the user confirm that they really want to insert a template/citation with blank required parameters.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends OO.ui.MessageDialog
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWRequiredParamBlankConfirmDialog = function VeUiMWRequiredParamBlankConfirmDialog( config ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.MWRequiredParamBlankConfirmDialog.super.call( this, config );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
OO.inheritClass( ve.ui.MWRequiredParamBlankConfirmDialog, OO.ui.MessageDialog );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ui.MWRequiredParamBlankConfirmDialog.static.name = 'requiredparamblankconfirm';
|
|
|
|
|
|
|
|
ve.ui.MWRequiredParamBlankConfirmDialog.static.size = 'medium';
|
|
|
|
|
|
|
|
ve.ui.MWRequiredParamBlankConfirmDialog.static.actions = [
|
|
|
|
{
|
|
|
|
action: 'ok',
|
|
|
|
label: OO.ui.deferMsg( 'visualeditor-dialog-transclusion-required-parameter-dialog-ok' ),
|
|
|
|
flags: [ 'primary', 'progressive' ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
action: 'cancel',
|
|
|
|
label: OO.ui.deferMsg( 'visualeditor-dialog-transclusion-required-parameter-dialog-cancel' ),
|
2015-08-06 13:34:32 +00:00
|
|
|
flags: [ 'safe', 'back' ]
|
2014-08-27 15:44:07 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.windowFactory.register( ve.ui.MWRequiredParamBlankConfirmDialog );
|