Page MenuHomePhabricator

Add a functionality to gray out gadgets on gadgets preference tab that are dependent on other gadgets.
Open, MediumPublic

Description

Gadget checkboxes should be able to be grayed out (inaccessible) dependent on if another gadget is on or off, if other extensions exist that gadgets are unable to use, or if they require a specific skin to work. For example, on en.wikipedia the current "Editing" section of the gadget tab on the preferences page looks like:

commons:File:Special_Preferences_mw-prefsection-gadgets_(current).png

There should be a way to gray out functions, like:

commons:File:Special_Preferences_mw-prefsection-gadgets_(proposed).png
If (in this instance) VisualEditor is enabled.

Details

Reference
bz53584

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:06 AM
bzimport set Reference to bz53584.
bzimport added a subscriber: Unknown Object (MLST).

The BetaFeatures extension implements something similar, maybe it could be extended to work with Gadgets. But I'm not sure if it's a good idea, you could just use the dependency system to load other gadgets regardless.

The BetaFeatures extension implements something similar, maybe it could be extended to work with Gadgets. But I'm not sure if it's a good idea, you could just use the dependency system to load other gadgets regardless.

Except in cases where the user doesn't want to use that other gadget. In those cases, the dependent gadget should be greyed out and indicate they require the other component. This lets the editor/user decide.

Krinkle set Security to None.