Skip to content

Commit

Permalink
Fix message property path (#523)
Browse files Browse the repository at this point in the history
Co-authored-by: Sree P <[email protected]>
  • Loading branch information
nsiwnf and nsiwnf authored Mar 10, 2024
1 parent 10b14ee commit 0c9b619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/organizations/pets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<%= link_to pet_path(pet), class: 'dropdown-item' do %>
<i class="fe fe-link dropdown-item-icon"></i>Copy link
<% end %>
<%= button_to pet, method: :delete, class: 'dropdown-item', data: { turbo_confirm: t('.are_you_sure_delete') } do %>
<%= button_to pet, method: :delete, class: 'dropdown-item', data: { turbo_confirm: t('general.are_you_sure_delete_pet') } do %>
<i class="fe fe-trash dropdown-item-icon"></i>Delete
<% end %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/organizations/pets/tabs/_overview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<%= link_to t('general.edit'), edit_pet_path(@pet), class: 'btn btn-outline-dark' %>
<%= button_to t('general.delete'), pet_path(@pet), method: :delete,
class: 'btn btn-outline-danger',
data: { turbo_confirm: t('.are_you_sure_delete') } %>
data: { turbo_confirm: t('general.are_you_sure_delete_pet') } %>
</div>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ en:
submit: "Submit"
status: "Status"
back: "Back"
are_you_sure_delete_pet: "Are you sure you want to delete this pet?"
activerecord:
errors:
models:
Expand Down Expand Up @@ -330,14 +331,12 @@ en:
view_adopter: "View Adopter"
revoke_adoption: "Revoke Adoption"
are_you_sure_revoke: "Are you sure you want to revoke this adoption?"
are_you_sure_delete: "Are you sure you want to delete this pet?"
application:
active: "Applications are active"
paused: "Applications are paused"
form:
uploaded_images: "Uploaded Images"
index:
are_you_sure_delete: "Are you sure you want to delete this pet?"
our_pets: "Our pets"
filter: "Filter by adoption status"
select:
Expand Down

0 comments on commit 0c9b619

Please sign in to comment.