mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 07:55:21 +02:00
Clean up deletion resource names
This commit is contained in:
parent
c882f08390
commit
c8d6569f8a
7 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@ class CustomConfirm
|
||||||
new(
|
new(
|
||||||
destructive: true,
|
destructive: true,
|
||||||
high_severity: high_severity,
|
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.",
|
body: "Are you sure you want to delete #{resource_name.downcase}? This is not reversible.",
|
||||||
btn_text: "Delete #{resource_name.downcase}"
|
btn_text: "Delete #{resource_name.downcase}"
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
href: account_path(account),
|
href: account_path(account),
|
||||||
method: :delete,
|
method: :delete,
|
||||||
icon: "trash-2",
|
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 }
|
data: { turbo_frame: :_top }
|
||||||
) %>
|
) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -17,6 +17,6 @@
|
||||||
href: chat_path(chat),
|
href: chat_path(chat),
|
||||||
icon: "trash-2",
|
icon: "trash-2",
|
||||||
method: :delete,
|
method: :delete,
|
||||||
confirm: CustomConfirm.for_resource_deletion("Chat")) %>
|
confirm: CustomConfirm.for_resource_deletion("chat")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
href: chat_path(chat),
|
href: chat_path(chat),
|
||||||
icon: "trash-2",
|
icon: "trash-2",
|
||||||
method: :delete,
|
method: :delete,
|
||||||
confirm: CustomConfirm.for_resource_deletion("Chat")) %>
|
confirm: CustomConfirm.for_resource_deletion("chat")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
href: import_path(import),
|
href: import_path(import),
|
||||||
icon: "trash-2",
|
icon: "trash-2",
|
||||||
method: :delete,
|
method: :delete,
|
||||||
confirm: CustomConfirm.for_resource_deletion("Import")) %>
|
confirm: CustomConfirm.for_resource_deletion("import")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
href: rule_path(rule),
|
href: rule_path(rule),
|
||||||
icon: "trash-2",
|
icon: "trash-2",
|
||||||
method: :delete,
|
method: :delete,
|
||||||
confirm: CustomConfirm.for_resource_deletion("Rule")) %>
|
confirm: CustomConfirm.for_resource_deletion("rule")) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
href: destroy_all_rules_path,
|
href: destroy_all_rules_path,
|
||||||
icon: "trash-2",
|
icon: "trash-2",
|
||||||
method: :delete,
|
method: :delete,
|
||||||
confirm: CustomConfirm.for_resource_deletion("All rules", high_severity: true)) %>
|
confirm: CustomConfirm.for_resource_deletion("all rules", high_severity: true)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue