Item visibility toggle ("eye icon") now hidden under a submenu?

Re: Item visibility toggle ("eye icon") now hidden under a submenu?

by Javier Martín -
Number of replies: 0

Ok, I "fixed" it by editing course/lib.php, which is not ideal but will work for the year being.

The diff below will take the eye icon out of the action menu and show it along with the activity title

As much as I love moodle, until there is a way to change the properties of multiple activities at once, I think hiding essential actions further away from the main course page is a bad idea from the UX standpoint. Just my 0.02€.


--- moodle-33-orig/course/lib.php       2017-09-05 00:21:45.785048205 +0200
+++ moodle-33/course/lib.php    2017-09-05 00:22:45.372625613 +0200
@@ -1987,7 +1987,7 @@
         $unavailable = !$mod->visible;
         $stealth = $mod->visible && (!$mod->visibleoncoursepage || !$sectionvisible);
         if ($displayedoncoursepage) {
-            $actions['hide'] = new action_menu_link_secondary(
+            $actions['hide'] = new action_menu_link_primary(
                 new moodle_url($baseurl, array('hide' => $mod->id)),
                 new pix_icon('t/hide', $str->modhide, 'moodle', array('class' => 'iconsmall', 'title' => '')),
                 $str->modhide,
@@ -1995,7 +1995,7 @@
             );
         } else if (!$displayedoncoursepage && $sectionvisible) {
             // Offer to "show" only if the section is visible.
-            $actions['show'] = new action_menu_link_secondary(
+            $actions['show'] = new action_menu_link_primary(
                 new moodle_url($baseurl, array('show' => $mod->id)),
                 new pix_icon('t/show', $str->modshow, 'moodle', array('class' => 'iconsmall', 'title' => '')),
                 $str->modshow,
Average of ratings: Useful (1)