mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Remove admin order #show link from helper
This commit is contained in:
@@ -3,7 +3,6 @@ module Spree
|
||||
module OrdersHelper
|
||||
def order_links(order)
|
||||
links = []
|
||||
links << { name: t(:view_order), url: admin_order_path(order), icon: 'icon-eye-open' } unless action_name == "show"
|
||||
links << { name: t(:edit_order), url: edit_admin_order_path(order), icon: 'icon-edit' } unless action_name == "edit"
|
||||
if @order.complete?
|
||||
links << { name: t(:resend_confirmation), url: resend_admin_order_path(order), icon: 'icon-email', method: 'post', confirm: t(:confirm_resend_order_confirmation) }
|
||||
|
||||
Reference in New Issue
Block a user