From 748c09d547e19a07c691745e7f5111b5faa303f2 Mon Sep 17 00:00:00 2001 From: Adrian Marin Date: Fri, 31 May 2024 20:15:31 +0300 Subject: [PATCH] fix: add a few more svg prefixes (#2826) --- app/components/avo/index/resource_controls_component.rb | 2 +- lib/generators/avo/templates/initializer/avo.tt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/avo/index/resource_controls_component.rb b/app/components/avo/index/resource_controls_component.rb index 324e51d699..61c239bfcb 100644 --- a/app/components/avo/index/resource_controls_component.rb +++ b/app/components/avo/index/resource_controls_component.rb @@ -148,7 +148,7 @@ def render_detach_button(control) a_button url: helpers.resource_detach_path(params[:resource_name], params[:id], params[:related_name], @resource.record.id), style: :icon, color: :gray, - icon: "detach", + icon: "avo/detach", form_class: "flex items-center", title: control.title, aria: {label: control.title}, diff --git a/lib/generators/avo/templates/initializer/avo.tt b/lib/generators/avo/templates/initializer/avo.tt index b204348a06..20b8e4f5ca 100644 --- a/lib/generators/avo/templates/initializer/avo.tt +++ b/lib/generators/avo/templates/initializer/avo.tt @@ -130,11 +130,11 @@ Avo.configure do |config| ## == Menus == # config.main_menu = -> { - # section "Dashboards", icon: "dashboards" do + # section "Dashboards", icon: "avo/dashboards" do # all_dashboards # end - # section "Resources", icon: "resources" do + # section "Resources", icon: "avo/resources" do # all_resources # end