We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7227fa3 commit f2fd1a8Copy full SHA for f2fd1a8
backend/app/controllers/spree/admin/variants_controller.rb
@@ -12,12 +12,12 @@ def destroy
12
if @variant.destroy
13
flash[:success] = Spree.t('notice_messages.variant_deleted')
14
else
15
- flash[:success] = Spree.t('notice_messages.variant_not_deleted')
+ flash[:error] = Spree.t('notice_messages.variant_not_deleted')
16
end
17
18
respond_with(@variant) do |format|
19
format.html { redirect_to admin_product_variants_url(params[:product_id]) }
20
- format.js { render_js_for_destroy }
+ format.js { render_js_for_destroy }
21
22
23
0 commit comments