mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Revert "#11067, remove messages to match with old UI UX"
Now we support flash messages, we can show it!
This reverts commit d8904099dd.
This commit is contained in:
@@ -82,7 +82,12 @@ module Spree
|
||||
|
||||
def clone
|
||||
@new = @product.duplicate
|
||||
@new.save
|
||||
|
||||
flash[:success] = if @new.save
|
||||
Spree.t('notice_messages.product_cloned')
|
||||
else
|
||||
Spree.t('notice_messages.product_not_cloned')
|
||||
end
|
||||
|
||||
redirect_to spree.admin_products_url
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user