diff --git a/extension.json b/extension.json index 8501d720..292b11d5 100644 --- a/extension.json +++ b/extension.json @@ -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", diff --git a/i18n/en.json b/i18n/en.json index 2755dc15..0fa55d3f 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -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", diff --git a/i18n/qqq.json b/i18n/qqq.json index 4701a283..4429a1c6 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -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}}", diff --git a/modules/ext.templateDataGenerator.data/Model.js b/modules/ext.templateDataGenerator.data/Model.js index 2fe04d23..cf0e70ff 100644 --- a/modules/ext.templateDataGenerator.data/Model.js +++ b/modules/ext.templateDataGenerator.data/Model.js @@ -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 *