mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Add ability to delete all tags (#2200)
* Add ability to delete all tags * Downcase resource for confirmation * Clean up deletion resource names * titleize button
This commit is contained in:
parent
dcc43cb253
commit
c022e862aa
11 changed files with 37 additions and 17 deletions
|
@ -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.titleize}?",
|
||||
body: "Are you sure you want to delete #{resource_name.downcase}? This is not reversible.",
|
||||
btn_text: "Delete #{resource_name.titleize}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue