1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Downcase resource for confirmation

This commit is contained in:
hatz 2025-05-02 19:51:31 -05:00
parent 1fb39f78ee
commit c882f08390
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -6,9 +6,9 @@ class CustomConfirm
new(
destructive: true,
high_severity: high_severity,
title: "Delete #{resource_name}?",
body: "Are you sure you want to delete #{resource_name}? This is not reversible.",
btn_text: "Delete #{resource_name}"
title: "Delete #{resource_name.downcase}?",
body: "Are you sure you want to delete #{resource_name.downcase}? This is not reversible.",
btn_text: "Delete #{resource_name.downcase}"
)
end
end

View file

@ -9,7 +9,7 @@
href: destroy_all_categories_path,
method: :delete,
icon: "trash-2",
confirm: CustomConfirm.for_resource_deletion("All categories", high_severity: true)) %>
confirm: CustomConfirm.for_resource_deletion("all categories", high_severity: true)) %>
<% end %>
<%= render LinkComponent.new(