-
Improvement
-
Resolution: Fixed
-
Minor
-
4.5
-
Any
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
main_
MDL-82141 -
-
1
-
Team Hedgehog 2024 Sprint 2.2
Replace the current "eye" icon for enabling and disabling plugins in tables that use the Plugin Management Table (plugin_management_table) class with the Font Awesome "toggle" icon.
The toggle icon is better UX for disabling and enabling plugins. The eye icon is more suited for showing and hiding. The toggle icon is also being used in used interfaces (SMS: MDL-81732, AI: MDL-80889).
This is the most centralised place currently for settings tables. As mentioned in MDL-76867 there are more places that the tables need to be refactored to use this new method. Updating other tables that do't use this class is out of scope of this issue.
As part of this work a new behat step has been introduced, specifically for admin switch toggling. This new step better describes the action of what you're doing in the UI (more business analyst-compatible) rather than the mechanics of how that happens (more developer focused).
The step: I toggle the "<name>" admin switch "<state>"
Also the non-JS Behat tests for this functionality have been removed, as toggles need JS.