Commit 998a9691 authored by Kushal Pandya's avatar Kushal Pandya

Pass on search params presence flag to roadmap app

parent 44a45184
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
- @content_class = "group-epics-roadmap" - @content_class = "group-epics-roadmap"
- breadcrumb_title _("Epics Roadmap") - breadcrumb_title _("Epics Roadmap")
- has_filters_applied = params[:label_name].present? || params[:author_username].present? || params[:search].present?
- if @epics_count != 0 - if @epics_count != 0
= render 'shared/epic/search_bar', type: :epics, hide_sort_dropdown: true = render 'shared/epic/search_bar', type: :epics, hide_sort_dropdown: true
#js-roadmap{ data: { epics_path: group_epics_path(@group, format: :json), group_id: @group.id, empty_state_illustration: image_path('illustrations/epics/roadmap.svg') } } #js-roadmap{ data: { epics_path: group_epics_path(@group, format: :json), group_id: @group.id, empty_state_illustration: image_path('illustrations/epics/roadmap.svg'), has_filters_applied: "#{has_filters_applied}" } }
- else - else
= render 'shared/empty_states/roadmap' = render 'shared/empty_states/roadmap'
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