Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sidebars/menu_item.rb')
-rw-r--r--lib/sidebars/menu_item.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sidebars/menu_item.rb b/lib/sidebars/menu_item.rb
index b0a12e769dc..1375f9fffca 100644
--- a/lib/sidebars/menu_item.rb
+++ b/lib/sidebars/menu_item.rb
@@ -22,5 +22,13 @@ module Sidebars
def render?
true
end
+
+ def nav_link_html_options
+ {
+ data: {
+ track_label: item_id
+ }
+ }
+ end
end
end