add note about ammo when deleting ammo type
This commit is contained in:
		| @@ -4,6 +4,7 @@ | |||||||
| - URL paths now reflect new names | - URL paths now reflect new names | ||||||
| - Add pack and round count to container information | - Add pack and round count to container information | ||||||
| - Add cute logo >:3 Thank you [kalli](https://twitter.com/t0kkuro)! | - Add cute logo >:3 Thank you [kalli](https://twitter.com/t0kkuro)! | ||||||
|  | - Add note about deleting an ammo type deleting all ammo of that type as well | ||||||
|  |  | ||||||
| # v0.5.3 | # v0.5.3 | ||||||
| - Update French translation: Thank you [duponin](https://udongein.xyz/users/duponin)! | - Update French translation: Thank you [duponin](https://udongein.xyz/users/duponin)! | ||||||
|   | |||||||
| @@ -137,7 +137,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do | |||||||
|             phx_click: "delete", |             phx_click: "delete", | ||||||
|             phx_value_id: ammo_type.id, |             phx_value_id: ammo_type.id, | ||||||
|             data: [ |             data: [ | ||||||
|               confirm: dgettext("prompts", "Are you sure you want to delete this ammo?"), |               confirm: dgettext("prompts", "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!", name: ammo_type.name), | ||||||
|               qa: "delete-#{ammo_type.id}" |               qa: "delete-#{ammo_type.id}" | ||||||
|             ] do %> |             ] do %> | ||||||
|         <i class="fa-lg fas fa-trash"></i> |         <i class="fa-lg fas fa-trash"></i> | ||||||
|   | |||||||
| @@ -24,7 +24,7 @@ | |||||||
|          phx_click: "delete", |          phx_click: "delete", | ||||||
|          data: [ |          data: [ | ||||||
|            confirm: |            confirm: | ||||||
|              dgettext("prompts", "Are you sure you want to delete %{name}?", name: @ammo_type.name), |              dgettext("prompts", "Are you sure you want to delete %{name}? This will delete all %{name} type ammo as well!", name: @ammo_type.name), | ||||||
|            qa: "delete" |            qa: "delete" | ||||||
|          ] do %> |          ] do %> | ||||||
|       <i class="fa-fw fa-lg fas fa-trash"></i> |       <i class="fa-fw fa-lg fas fa-trash"></i> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user