Commit graph

1 commit

Author SHA1 Message Date
brandonxlf
1262ca1897 Use OOUI for protection form
Breaking changes:
  * Ids 'mwProtectSet', 'mw-protect-table3', and
    'mw-protect-table-$action' are no longer present on page.
  * Module 'mediawiki.legacy.protect' has been removed and replace by
    'mediawiki.action.protect'.

Deprecations:
  * ProtectionForm::buildForm has been replaced by
    ProtectionForm::addFormFields with backwards compatibility.

Other changes:
  * Expiry is no longer editable when "Allow all users" is selected
  * When "Unlock further protect options" is disabled, the expiry of
    the first section is used for the other sections
  * Legacy form elements added by extensions are added to a separate
    section which uses a blank i18n string as the header
  * Unprivileged users see the expiry selector instead of the expiry
    text input as it has the expiry date

Changes to ProtectionForm.php are based off of
I95d0289acceaa7ede789d5a6ea094fae757af6dc.

Bug: T235424
Bug: T236218
Change-Id: Ib22a3b53c1933e107ef5609bb2262aa44b5abb7a
2021-01-30 00:19:02 -05:00