Fix incorrect closet list deletion prompt message
It's no longer true that we transfer the items to the default list; we just delete them now!
This commit is contained in:
parent
5631b02157
commit
01f9065dbd
6 changed files with 7 additions and 21 deletions
|
@ -1,10 +1,4 @@
|
|||
module ClosetListsHelper
|
||||
def closet_list_delete_confirmation(closet_list)
|
||||
ownership_key = closet_list.hangers_owned? ? 'owned' : 'wanted'
|
||||
translate("closet_lists.closet_list.delete_confirmation.#{ownership_key}",
|
||||
:list_name => closet_list.name)
|
||||
end
|
||||
|
||||
def closet_list_description_format(list)
|
||||
md = RDiscount.new(list.description)
|
||||
Sanitize.clean(md.to_html, Sanitize::Config::BASIC).html_safe
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
= link_to t('.edit'), edit_user_closet_list_path(closet_list.user_id, closet_list)
|
||||
= form_tag user_closet_list_path(closet_list.user_id, closet_list), :method => 'delete' do
|
||||
= submit_tag t('.delete'),
|
||||
data: {turbo_confirm: closet_list_delete_confirmation(closet_list)}
|
||||
data: {turbo_confirm: t('.delete_confirmation', list_name: closet_list.name)}
|
||||
= form_tag user_closet_hangers_path(@user), method: :delete, class: 'remove-all' do
|
||||
= hidden_field_tag :list_id, closet_list.id
|
||||
= submit_tag t('.remove_all.submit'),
|
||||
|
|
|
@ -157,12 +157,8 @@ en-MEEP:
|
|||
edit: Meepit
|
||||
delete: Deleep
|
||||
delete_confirmation:
|
||||
owned:
|
||||
Are you sure you want to deleep "%{list_name}"? Even if you do, we'll
|
||||
remember that you own these items.
|
||||
wanted:
|
||||
Are you sure you want to deleep "%{list_name}"? Even if you do, we'll
|
||||
remember that you want these items.
|
||||
Are you sure you want to deleep "%{list_name}"? If you do, we'll deleep
|
||||
all the items in it, too.
|
||||
empty: This meep is empty.
|
||||
|
||||
edit:
|
||||
|
|
|
@ -169,10 +169,8 @@ en:
|
|||
edit: Edit
|
||||
delete: Delete
|
||||
delete_confirmation:
|
||||
owned: Are you sure you want to delete "%{list_name}"?
|
||||
If you do, we'll move these items into Items You Own, not in a list.
|
||||
wanted: Are you sure you want to delete "%{list_name}"?
|
||||
If you do, we'll move these items into Items You Want, not in a list.
|
||||
Are you sure you want to delete "%{list_name}"?
|
||||
If you do, we'll delete all the items in it, too.
|
||||
remove_all:
|
||||
confirm: "Remove all items from this list?"
|
||||
submit: Remove all
|
||||
|
|
|
@ -117,8 +117,7 @@ es:
|
|||
edit: Editar
|
||||
delete: Eliminar
|
||||
delete_confirmation:
|
||||
owned: ¿Estás seguro/a que quieres eliminar la lista "%{list_name}"? Recuerda que si eliminas la lista seguirás teniendo estos objetos.
|
||||
wanted: ¿Estás seguro/a que quieres eliminar la lista "%{list_name}"? Recuerda que si eliminas la lista seguirás queriendo estos objetos.
|
||||
¿Estás seguro/a que quieres eliminar la lista "%{list_name}"?
|
||||
empty: Esta lista está vacía.
|
||||
edit:
|
||||
title: Editando la lista "%{list_name}"
|
||||
|
|
|
@ -117,8 +117,7 @@ pt:
|
|||
edit: Editar
|
||||
delete: Excluir
|
||||
delete_confirmation:
|
||||
owned: Você tem certeza que deseja excluir "%{list_name}"? Mesmo se você fizer isso, vamos lembrar que você possui esses itens.
|
||||
wanted: Você tem certeza que deseja excluir "%{list_name}"? Mesmo se você fizer isso, vamos lembrar que você procura esses itens.
|
||||
Você tem certeza que deseja excluir "%{list_name}"?
|
||||
empty: Esta lista está vazia.
|
||||
edit:
|
||||
title: Editando lista "%{list_name}"
|
||||
|
|
Loading…
Reference in a new issue