Skip to content

Commit a607b1e

Browse files
Admin Panel - errored record deletions should show error flash, not warning to be consistent with the rest of the project
1 parent f2fd1a8 commit a607b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/views/spree/admin/shared/_destroy.js.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% end %>
44

55
<% if error = flash.discard(:error) %>
6-
show_flash('warning', "<%= j error %>");
6+
show_flash('error', "<%= j error %>");
77
<% end %>
88

99
<%= render partial: '/spree/admin/shared/update_order_state' if @order %>

0 commit comments

Comments
 (0)