Merge "Drop unused "Restore parameter" messages and code"

This commit is contained in:
jenkins-bot 2024-05-14 18:16:31 +00:00 committed by Gerrit Code Review
commit 3cb1b9ef25
4 changed files with 0 additions and 20 deletions

View file

@ -144,7 +144,6 @@
"templatedata-modal-button-importParams",
"templatedata-modal-button-map",
"templatedata-modal-button-removemap",
"templatedata-modal-button-restoreparam",
"templatedata-modal-button-saveparam",
"templatedata-modal-confirmcancel",
"templatedata-modal-current-language",

View file

@ -70,7 +70,6 @@
"templatedata-modal-button-map": "Edit maps",
"templatedata-modal-button-importParams": "Import parameters",
"templatedata-modal-button-removemap": "Remove map",
"templatedata-modal-button-restoreparam": "Restore parameter",
"templatedata-modal-button-saveparam": "Save",
"templatedata-modal-confirmcancel": "Are you sure you want to discard your changes?",
"templatedata-modal-current-language": "Current language: $1",

View file

@ -83,7 +83,6 @@
"templatedata-modal-button-map": "{{technical}}\nLabel of the Edit maps button. See [[:mw:Extension:TemplateData#Maps object]].",
"templatedata-modal-button-importParams": "Label of the import button",
"templatedata-modal-button-removemap": "{{technical}}\n\nLabel of the remove map button. See [[:mw:Extension:TemplateData#Maps object]].",
"templatedata-modal-button-restoreparam": "Label for the button to restore a previously deleted parameter in the edit dialog.",
"templatedata-modal-button-saveparam": "Label for the button to save parameter details in the templatedata edit dialog.\n{{Identical|Save}}",
"templatedata-modal-confirmcancel": "Prompt shown to the user when they attempt to cancel the templatedata edit dialog after making changes.",
"templatedata-modal-current-language": "Label displaying the current language in the edit dialog. Parameters:\n* $1 - currently showing language\n{{Identical|Current language}}",

View file

@ -783,23 +783,6 @@ Model.prototype.deleteParam = function ( paramKey ) {
this.emit( 'change' );
};
/**
* Restore parameter by unmarking it as deleted.
*
* @param {string} paramKey Parameter key
* @fires add-param
* @fires change
*/
Model.prototype.restoreParam = function ( paramKey ) {
if ( this.params[ paramKey ] ) {
this.params[ paramKey ].deleted = false;
// Add back to paramOrder
this.addKeyTemplateParamOrder( paramKey );
this.emit( 'add-param', paramKey, this.params[ paramKey ] );
this.emit( 'change' );
}
};
/**
* Delete all data attached to a parameter
*