Enabled and disabled tabs have both the css class views-display-deleted-link.

Because disabled class is set "if (empty($display->options['enabled']))" but disabled tabs have the option $display->display_options['enabled'] = FALSE;

The check should be:

if (isset($display->display_options['enabled']) && !$display->display_options['enabled']) {...}


osopolar’s picture

Patch for this fix.

dawehner’s picture

Title: Theme disabled Tabs (views_ui) » Enabled displays get the disabled link class
Status: Active » Fixed

This patch totally makes sense, thanks for that, committed to both 8.x-3.x and 7.x-3.x


Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.