diff options
author | Tim Starling <tstarling@wikimedia.org> | 2022-05-10 15:18:17 +1000 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2022-05-13 09:57:06 +1000 |
commit | d36ea62c20155de330c229c70137b00628b851a9 (patch) | |
tree | 3c5a75161373d0fe204a0fe0617d32cc1776d2cc /includes/specials/forms | |
parent | 63c77060a0e446d3a5c7ace7d15647d7517444a6 (diff) | |
download | mediawikicore-d36ea62c20155de330c229c70137b00628b851a9.tar.gz mediawikicore-d36ea62c20155de330c229c70137b00628b851a9.zip |
Bury the reset preferences link
* Move the reset preferences link from the bottom of the preferences
form to the "basic information" section.
* Change the link from "destructive" red to default styling, since the
action requires confirmation so there is no reason to make the user be
afraid of clicking it by accident.
* Add a checkbox to the /reset form, for triple confirmation.
* Add a cancel button to the /reset form, to take the user back to
safety.
* Allow checkboxes to be "required" by fixing a detail in
HTMLFormField::validate(). The UI is not pretty, but it works.
Bug: T226325
Change-Id: I116d5275ba1a5beaaa44b32b8eff5824e94b437a
Diffstat (limited to 'includes/specials/forms')
-rw-r--r-- | includes/specials/forms/PreferencesFormOOUI.php | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/specials/forms/PreferencesFormOOUI.php b/includes/specials/forms/PreferencesFormOOUI.php index c25a10172221..fd8767c8267c 100644 --- a/includes/specials/forms/PreferencesFormOOUI.php +++ b/includes/specials/forms/PreferencesFormOOUI.php @@ -114,17 +114,6 @@ class PreferencesFormOOUI extends OOUIHTMLForm { $html = parent::getButtons(); if ( $this->areOptionsEditable() ) { - $t = $this->getTitle()->getSubpage( 'reset' ); - - $html .= new OOUI\ButtonWidget( [ - 'infusable' => true, - 'id' => 'mw-prefs-restoreprefs', - 'label' => $this->msg( 'restoreprefs' )->text(), - 'href' => $t->getLinkURL(), - 'flags' => [ 'destructive' ], - 'framed' => false, - ] ); - $html = Xml::tags( 'div', [ 'class' => 'mw-prefs-buttons' ], $html ); } |