Sha256: c63b6a7fc874ad8ef57d7ced8fbc71b985b6fad231d412bb661c640442a1125e
Contents?: true
Size: 482 Bytes
Versions: 6
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true class Avo::SidebarComponent < ViewComponent::Base def dashboards return [] if Avo::App.license.lacks_with_trial(:dashboards) Avo::App.get_dashboards(helpers._current_user).select do |dashboard| dashboard.is_visible? end end def resources Avo::App.resources_navigation(helpers._current_user) end def tools return [] if Avo::App.license.lacks_with_trial(:custom_tools) Avo::App.get_sidebar_partials end end
Version data entries
6 entries across 6 versions & 1 rubygems