Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fix bulk operations in the admin panel (#12387)

Damian Kaczmarczyk6649481a1bd7
diff --git a/admin/app/helpers/spree/admin/turbo_helper.rb b/admin/app/helpers/spree/admin/turbo_helper.rb
index 791f615905..eac89fd5b9 100644
--- a/admin/app/helpers/spree/admin/turbo_helper.rb
+++ b/admin/app/helpers/spree/admin/turbo_helper.rb
@@ -9,7 +9,7 @@ module Spree
javascript_tag do
raw <<~JS
if (document.querySelector('##{modal_id}')) {
- window.bootstrapJQuery("##{modal_id}").modal('hide');
+ window.$("##{modal_id}").modal('hide');
}
JS
end
diff --git a/admin/config/locales/en.yml b/admin/config/locales/en.yml
index 8d1d574b00..edd632e4bc 100644
--- a/admin/config/locales/en.yml
+++ b/admin/config/locales/en.yml
@@ -279,6 +279,21 @@ en:
edit:
payment_method_configuration: "Payment Method Configuration"
bulk_ops:
+ set: Set
+ stock_items:
+ set_backorderable_to_false: Set Backorderable to false
+ set_backorderable_to_true: Set Backorderable to true
+ set_track_inventory_to_false: Disable Inventory Tracking
+ set_track_inventory_to_true: Enable Inventory Tracking
+ backorderable_explanation: Backorderable indicates if a stock item can be backordered when it runs out.
+ track_inventory_explanation: Enable/disable tracking the inventory for stock items.
+ users:
+ title:
+ add_tags: Add tags
+ remove_tags: Remove tags
+ body:
+ add_tags: 'Select tags to add to the customers:'
+ remove_tags: 'Select tags to remove from the customers:'
products:
title:
set_status: Set as %{status}
@@ -376,22 +391,6 @@ en:
button_alignment: Button alignment
not_set: Not set
view_all_orders: View all orders
- bulk_ops:
- set: Set
- stock_items:
- set_backorderable_to_false: Set Backorderable to false
- set_backorderable_to_true: Set Backorderable to true
- set_track_inventory_to_false: Disable Inventory Tracking
- set_track_inventory_to_true: Enable Inventory Tracking
- backorderable_explanation: Backorderable indicates if a stock item can be backordered when it runs out.
- track_inventory_explanation: Enable/disable tracking the inventory for stock items.
- users:
- title:
- add_tags: Add tags
- remove_tags: Remove tags
- body:
- add_tags: 'Select tags to add to the customers:'
- remove_tags: 'Select tags to remove from the customers:'
amount_spent: Amount spent
avg_order_value: Avg. Order Value
num_orders: No. of Orders