Commit 03b8d46d authored by osopolar's avatar osopolar Committed by tim.plunkett
Browse files

Issue #1742732 by osopolar: Enabled displays get the disabled link class.

parent 7d8102ea
......@@ -1473,7 +1473,7 @@ function views_ui_edit_page_display_tabs($view, $display_id = NULL) {
if (!empty($display->deleted)) {
$tabs[$id]['#link']['localized_options']['attributes']['class'][] = 'views-display-deleted-link';
}
if (empty($display->options['enabled'])) {
if (isset($display->display_options['enabled']) && !$display->display_options['enabled']) {
$tabs[$id]['#link']['localized_options']['attributes']['class'][] = 'views-display-disabled-link';
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment