diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index db30aa004a2..ab2c07387a7 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -152,6 +152,10 @@ class SpecialBlock extends FormSpecialPage { if ( $this->useCodex ) { $this->getOutput()->addModules( 'mediawiki.special.block.codex' ); + $this->codexFormData[ 'blockAlreadyBlocked' ] = $this->alreadyBlocked; + $this->codexFormData[ 'blockTargetUser' ] = $this->target instanceof UserIdentity ? + $this->target->getName() : + $this->target ?? null; $this->getOutput()->addJsConfigVars( $this->codexFormData ); } } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index e80381565f1..9b49cde9f9a 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -2693,7 +2693,6 @@ "block-user-label": "Which user do you want to block?", "block-user-description": "A user can be a username, IP address, or an IP range.", "block-user-placeholder": "Start typing a user...", - "block-save": "Save block", "block-target": "Username, IP address, or IP range:", "block-target-placeholder": "UserName, 1.1.1.42, or 1.1.1.42/16", "unblockip": "Unblock user", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 01ebba4b2e4..4e7a986168e 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -2956,7 +2956,6 @@ "block-user-label": "Label for the input for specifying the user of a block on [[Special:Block]]", "block-user-description": "Description for the input for specifying the user of a block on [[Special:Block]]", "block-user-placeholder": "Placeholder text for the input specifying the user of a block on [[Special:Block]]", - "block-save": "Label for submit button on block form [[Special:Block]]", "block-target": "Label for the input for specifying the target of a block on [[Special:Block]]", "block-target-placeholder": "Placeholder text for the input specifying the target of a block on [[Special:Block]]", "unblockip": "Used as title and legend for the form in [[Special:Unblock]].", diff --git a/resources/Resources.php b/resources/Resources.php index 06d5281fd0c..468d21efeee 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -2279,20 +2279,25 @@ return [ 'block-options-description', 'block-reason', 'block-reason-other', - 'block-save', 'block-user-description', 'block-user-label', 'block-user-placeholder', 'blocklist-type-opt-partial', 'blocklist-type-opt-sitewide', 'colon-separator', + 'block-user-label', + 'block-user-description', + 'block-user-placeholder', + 'ipbsubmit', 'htmlform-optional-flag', 'htmlform-selectorother-other', 'ipb-action-create', 'ipb-action-move', 'ipb-action-upload', + 'ipb-change-block', 'ipb-disableusertalk', 'ipb-hardblock', + 'ipb-needreblock', 'ipb-partial-help', 'ipb-sitewide-help', 'ipbcreateaccount', diff --git a/resources/src/mediawiki.special.block/SpecialBlock.vue b/resources/src/mediawiki.special.block/SpecialBlock.vue index c01c758bb45..2d7fc453e97 100644 --- a/resources/src/mediawiki.special.block/SpecialBlock.vue +++ b/resources/src/mediawiki.special.block/SpecialBlock.vue @@ -1,5 +1,15 @@