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

Clean up deletion resource names

This commit is contained in:
hatz 2025-05-02 19:56:42 -05:00
parent c882f08390
commit c8d6569f8a
No known key found for this signature in database
7 changed files with 7 additions and 7 deletions

View file

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

View file

@ -19,7 +19,7 @@
href: account_path(account),
method: :delete,
icon: "trash-2",
confirm: CustomConfirm.for_resource_deletion("Account", high_severity: true),
confirm: CustomConfirm.for_resource_deletion("account", high_severity: true),
data: { turbo_frame: :_top }
) %>
<% end %>

View file

@ -17,6 +17,6 @@
href: chat_path(chat),
icon: "trash-2",
method: :delete,
confirm: CustomConfirm.for_resource_deletion("Chat")) %>
confirm: CustomConfirm.for_resource_deletion("chat")) %>
<% end %>
<% end %>

View file

@ -29,7 +29,7 @@
href: chat_path(chat),
icon: "trash-2",
method: :delete,
confirm: CustomConfirm.for_resource_deletion("Chat")) %>
confirm: CustomConfirm.for_resource_deletion("chat")) %>
<% end %>
<% end %>
</nav>

View file

@ -59,7 +59,7 @@
href: import_path(import),
icon: "trash-2",
method: :delete,
confirm: CustomConfirm.for_resource_deletion("Import")) %>
confirm: CustomConfirm.for_resource_deletion("import")) %>
<% end %>
<% end %>
</div>

View file

@ -55,7 +55,7 @@
href: rule_path(rule),
icon: "trash-2",
method: :delete,
confirm: CustomConfirm.for_resource_deletion("Rule")) %>
confirm: CustomConfirm.for_resource_deletion("rule")) %>
<% end %>
</div>
</div>

View file

@ -10,7 +10,7 @@
href: destroy_all_rules_path,
icon: "trash-2",
method: :delete,
confirm: CustomConfirm.for_resource_deletion("All rules", high_severity: true)) %>
confirm: CustomConfirm.for_resource_deletion("all rules", high_severity: true)) %>
<% end %>
<% end %>