aboutsummaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
authorMusikAnimal <musikanimal@gmail.com>2024-11-13 21:05:38 -0500
committerMusikAnimal <musikanimal@gmail.com>2024-11-20 14:51:15 -0500
commitdcb600a02107ca5d1ceccb5fc9797255253830da (patch)
tree832291bb1f361d630b86ebabcf50f2d89992ed17 /languages
parent5c309ea433947ffd974debc692f3eddc23acb052 (diff)
downloadmediawikicore-dcb600a02107ca5d1ceccb5fc9797255253830da.tar.gz
mediawikicore-dcb600a02107ca5d1ceccb5fc9797255253830da.zip
SpecialBlock [Codex]: use confirmation dialog instead of checkbox
Add a reusable ConfirmationDialog, akin to OO.ui.confirm(). A local prop to track the 'open' state is required, but otherwise you only need to provide 'title', the content (the only slot), and what to do on confirmation via the 'confirm' event. SpecialBlock.vue – where form submission is handled – is responsible for opening this dialog, while the store has a watcher to set the confirmationMessage ref. TODOs are left to further abstract ConfirmationDialog and other eligible components for general use in MediaWiki (T375220). Simplify some components by putting the formSubmitted prop into the store. Update tests and use toStrictEqual() instead of toBe(), following the same convention of strict equality comparisons used in JS and QUnit tests. Bug: T376754 Change-Id: I73d4fecb7f91e565a9029311c6d5cd9cfe7ab230
Diffstat (limited to 'languages')
-rw-r--r--languages/i18n/en.json2
-rw-r--r--languages/i18n/qqq.json2
2 files changed, 4 insertions, 0 deletions
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index ffcc07b8cb18..65978e3fa53d 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -2692,6 +2692,8 @@
"block-options-description": "These options may help you monitor this user, in order to prevent further issues.",
"block-reason": "Reason:",
"block-reason-other": "Additional or other reason",
+ "block-confirm-yes": "Yes",
+ "block-confirm-no": "No",
"block-success": "[[Special:Contributions/$1|$1]] has been blocked. See the [[Special:BlockList|block list]] to review blocks.",
"block-user-active-blocks": "Active blocks",
"block-user-no-active-blocks": "No active blocks found",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index 11c074182c36..ca37dcc0c7c9 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -2955,6 +2955,8 @@
"block-options-description": "Description for the checkboxes for specifying additional options for a block on [[Special:Block]]",
"block-reason": "Label for the input for specifying the reason for a block on [[Special:Block]]\n{{Identical|Reason}}",
"block-reason-other": "Placeholder text for the 'Other' text field on [[Special:Block]].",
+ "block-confirm-yes": "Used in confirmation dialogs at Special:Block.\n{{Identical|Yes}}",
+ "block-confirm-no": "Used in confirmation dialogs at Special:Block.\n{{Identical|No}}",
"block-success": "Message shown when a block is successfully applied on [[Special:Block]]. Similar to {{msg-mw|blockipsuccesstext}} except only basic wikitext is allowed.\n\nParameters:\n* $1 - target username",
"block-user-active-blocks": "Header for the active blocks table",
"block-user-no-active-blocks": "Message shown when there are no active blocks for the user",