summaryrefslogtreecommitdiff
path: root/app/views/layouts/header/_new_dropdown.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/header/_new_dropdown.html.haml')
-rw-r--r--app/views/layouts/header/_new_dropdown.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/layouts/header/_new_dropdown.html.haml b/app/views/layouts/header/_new_dropdown.html.haml
index 42c2fd645da..50a2b45aa7e 100644
--- a/app/views/layouts/header/_new_dropdown.html.haml
+++ b/app/views/layouts/header/_new_dropdown.html.haml
@@ -1,4 +1,4 @@
-- view_model = new_dropdown_view_model(project: @project, group: @group, with_context: true)
+- view_model = new_dropdown_view_model(project: @project, group: @group)
- menu_sections = view_model.fetch(:menu_sections)
- title = view_model.fetch(:title)
- show_headers = menu_sections.length > 1
@@ -28,8 +28,7 @@
%li<
- if menu_item.fetch(:partial).present?
= render partial: menu_item.fetch(:partial),
- locals: { context: view_model[:context],
- display_text: menu_item.fetch(:title),
+ locals: { display_text: menu_item.fetch(:title),
icon: menu_item.fetch(:icon),
data: menu_item.fetch(:data) }
- else