Sha256: e9674d670d4ed184d3b3339d8aec88dcabc4e089f141e7343a74ab5d63d76ba4
Contents?: true
Size: 596 Bytes
Versions: 19
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true class Avo::SidebarComponent < Avo::BaseComponent def initialize(sidebar_open: nil, for_mobile: false) @sidebar_open = sidebar_open @for_mobile = for_mobile end def dashboards return [] unless Avo.plugin_manager.installed?("avo-dashboards") Avo::Dashboards.dashboard_manager.dashboards_for_navigation end def resources Avo.resource_manager.resources_for_navigation helpers._current_user end def tools Avo.tool_manager.tools_for_navigation end def stimulus_target @for_mobile ? "mobileSidebar" : "sidebar" end end
Version data entries
19 entries across 19 versions & 1 rubygems