Class: Avo::SidebarComponent
Constant Summary
Concerns::FindAssociationField::ASSOCIATIONS
Instance Method Summary
collapse
#has_with_trial
#find_association_field
Instance Method Details
#dashboards ⇒ Object
7
8
9
10
11
|
# File 'app/components/avo/sidebar_component.rb', line 7
def dashboards
return [] unless Avo.plugin_manager.installed?(:avo_dashboards)
Avo::Dashboards.dashboard_manager.dashboards_for_navigation
end
|
#resources ⇒ Object
13
14
15
|
# File 'app/components/avo/sidebar_component.rb', line 13
def resources
Avo.resource_manager.resources_for_navigation helpers._current_user
end
|
#stimulus_target ⇒ Object
21
22
23
|
# File 'app/components/avo/sidebar_component.rb', line 21
def stimulus_target
@for_mobile ? "mobileSidebar" : "sidebar"
end
|
17
18
19
|
# File 'app/components/avo/sidebar_component.rb', line 17
def tools
Avo.tool_manager.tools_for_navigation
end
|