debian-mirror-gitlab/lib/sidebars/nil_menu_item.rb
2021-06-08 01:23:25 +05:30

16 lines
294 B
Ruby

# frozen_string_literal: true
module Sidebars
class NilMenuItem < MenuItem
extend ::Gitlab::Utils::Override
def initialize(item_id:)
super(item_id: item_id, title: nil, link: nil, active_routes: {})
end
override :render?
def render?
false
end
end
end