mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
#11067, implement product clone
This commit is contained in:
@@ -89,7 +89,7 @@ module Spree
|
||||
Spree.t('notice_messages.product_not_cloned')
|
||||
end
|
||||
|
||||
redirect_to spree.edit_admin_product_url(@new)
|
||||
redirect_to spree.admin_products_url
|
||||
end
|
||||
|
||||
def group_buy_options
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
= link_to t('admin.products_page.actions.edit'), edit_admin_product_variant_path(product, variant), class: "vertical-ellipsis-menu-content-item"
|
||||
- else
|
||||
= link_to t('admin.products_page.actions.edit'), edit_admin_product_path(product), class: "vertical-ellipsis-menu-content-item"
|
||||
= link_to t('admin.products_page.actions.clone'), clone_admin_product_path(product), class: "vertical-ellipsis-menu-content-item"
|
||||
|
||||
@@ -576,6 +576,7 @@ en:
|
||||
import_date: "Import Date"
|
||||
actions:
|
||||
edit: Edit
|
||||
clone: Clone
|
||||
adjustments:
|
||||
skipped_changing_canceled_order: "You can't change a cancelled order."
|
||||
# Common properties / models
|
||||
|
||||
Reference in New Issue
Block a user