Skip to content

Commit e6e21f9

Browse files
committed
Make order customer email links consistent
Previously the order table would show user account links for users who had accounts, and mailto links for those who did not. This inconsistent link behavior is replaced with plaintext for users who do not have accounts.
1 parent 0c7020f commit e6e21f9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend/app/views/spree/admin/orders/index.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@
184184
<% if order.user %>
185185
<%= link_to order.email, edit_admin_user_path(order.user) %>
186186
<% else %>
187-
<%= mail_to order.email %>
187+
<%= order.email %>
188188
<% end %>
189+
<%= link_to_with_icon('email', t('spree.actions.send_email'), "mailto:#{order.email}", no_text: true) %>
189190
</td>
190191
<td class="align-right"><%= order.display_total.to_html %></td>
191192
<td class='actions align-center' data-hook="admin_orders_index_row_actions">

core/config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ en:
793793
refund: Refund
794794
remove: Remove
795795
save: Save
796+
send_email: Send Email
796797
ship: Ship
797798
split: Split
798799
update: Update

0 commit comments

Comments
 (0)