diff options
Diffstat (limited to 'lib/sidebars/search/panel.rb')
-rw-r--r-- | lib/sidebars/search/panel.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/sidebars/search/panel.rb b/lib/sidebars/search/panel.rb index 83079fa8e72..014d45a0845 100644 --- a/lib/sidebars/search/panel.rb +++ b/lib/sidebars/search/panel.rb @@ -8,12 +8,17 @@ module Sidebars _('Search results') end + # The Search Panel is a special candidate and renderable, + # even though it has no backend-defined menus. + # It will receive it's menu items in the frontend + override :render? + def render? + true + end + override :super_sidebar_context_header def super_sidebar_context_header - @super_sidebar_context_header ||= { - title: aria_label, - icon: 'search-results' - } + aria_label end end end |