diff --git a/app/components/avo/profile_item_component.html.erb b/app/components/avo/profile_item_component.html.erb index bf093f685..b97119bec 100644 --- a/app/components/avo/profile_item_component.html.erb +++ b/app/components/avo/profile_item_component.html.erb @@ -5,6 +5,7 @@ target: target, title: title, method: method, + disabled: disabled, params: params do %> <%= helpers.svg(icon, class: 'h-4 mr-1') if icon.present? %> <%= label %> <% end %> diff --git a/app/components/avo/profile_item_component.rb b/app/components/avo/profile_item_component.rb index 16567d40b..a71934529 100644 --- a/app/components/avo/profile_item_component.rb +++ b/app/components/avo/profile_item_component.rb @@ -12,6 +12,7 @@ class Avo::ProfileItemComponent < Avo::BaseComponent end prop :title, reader: :public prop :method, reader: :public + prop :disabled, reader: :public prop :params, default: {}.freeze, reader: :public prop :classes, default: "", reader: :public