From 50265780cfaea414dd5cd2dd1fdefec37e9ebf65 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Fri, 13 Feb 2026 10:05:59 +0000 Subject: [PATCH] Call AdminTooltipComponent directly and remove unnecessary partial --- app/views/admin/enterprises/form/_users.html.haml | 4 ++-- app/views/admin/shared/_question_circle_tooltip.html.haml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 app/views/admin/shared/_question_circle_tooltip.html.haml diff --git a/app/views/admin/enterprises/form/_users.html.haml b/app/views/admin/enterprises/form/_users.html.haml index 7b158289bc..460112090a 100644 --- a/app/views/admin/enterprises/form/_users.html.haml +++ b/app/views/admin/enterprises/form/_users.html.haml @@ -12,10 +12,10 @@ %th= t('.manager') %th.center = t('.owner') - = render partial: 'admin/shared/question_circle_tooltip', locals: { tooltip_text: t('.owner_tip') } + = render AdminTooltipComponent.new(text: t('.owner_tip'), link_text: %[].html_safe, link: nil) %th.center = t('.contact') - = render partial: 'admin/shared/question_circle_tooltip', locals: { tooltip_text: t('.contact_tip') } + = render AdminTooltipComponent.new(text: t('.contact_tip'), link_text: %[].html_safe, link: nil) %tbody - @enterprise.users.each do |user| - contact = user.id == @enterprise.contact&.id diff --git a/app/views/admin/shared/_question_circle_tooltip.html.haml b/app/views/admin/shared/_question_circle_tooltip.html.haml deleted file mode 100644 index 8af9e6e973..0000000000 --- a/app/views/admin/shared/_question_circle_tooltip.html.haml +++ /dev/null @@ -1 +0,0 @@ -= render AdminTooltipComponent.new(text: tooltip_text, link_text: %[].html_safe, link: nil)