spree_elta_courier 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/spree/admin/elta_courier_controller.rb +1 -2
- data/app/javascript/spree_elta_courier/application.js +2 -2
- data/app/views/spree_elta_courier/_order_dropdown_options.html.erb +5 -5
- data/lib/spree_elta_courier/engine.rb +3 -1
- data/lib/spree_elta_courier/version.rb +1 -1
- metadata +4 -4
- /data/app/javascript/spree_elta_courier/controllers/{elta_courier_controller.js → spree_elta_courier_controller.js} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26014b9784bd34a1f386c5b5b740b43be81bfc2da63ffdeaddb8400feb68ae76
|
|
4
|
+
data.tar.gz: 1b6e63bd1ef82a058494348af32d7b76b257767292c8c7994b28a0b1155b7f73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ba4b45277392df53baab3891c4846c6cce867217d8f26049e45e2be6085403e73fc6b45c19d69ccedc7139efe92b2eee8759dd0c9cd4a3a38a094e25d8c8b45
|
|
7
|
+
data.tar.gz: 7552390a0ba578615e28e895c8e50160d2cb3e5fb607fb77c598261d96e6b7b03c4a20de8787668d88fed6a7240c594a29fd0a386dade26196a9349470517609
|
|
@@ -38,10 +38,9 @@ module Spree
|
|
|
38
38
|
load_order
|
|
39
39
|
|
|
40
40
|
shipments = @order.shipments.select(&:can_print_voucher?)
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
voucher_numbers = shipments.flat_map do |shipment|
|
|
43
43
|
vg_child = shipment.private_metadata['elta_courier.vg_child'] || []
|
|
44
|
-
|
|
45
44
|
[shipment.tracking] + vg_child
|
|
46
45
|
end
|
|
47
46
|
|
|
@@ -11,6 +11,6 @@ if (typeof window.Stimulus === "undefined") {
|
|
|
11
11
|
application = window.Stimulus
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import SpreeEltaCourierController from 'spree_elta_courier/controllers/spree_elta_courier_controller'
|
|
15
15
|
|
|
16
|
-
application.register('elta-courier',
|
|
16
|
+
application.register('spree-elta-courier', SpreeEltaCourierController)
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class='btn text-left dropdown-item'
|
|
6
|
-
data-controller='elta-courier'
|
|
7
|
-
data-action='elta-courier#createVoucher'
|
|
8
|
-
data-elta-courier-order-id-value='<%= @order.id %>'
|
|
9
|
-
data-elta-courier-create-voucher-prompt-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_prompt') %>"
|
|
10
|
-
data-elta-courier-create-voucher-error-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_error') %>">
|
|
6
|
+
data-controller='spree-elta-courier'
|
|
7
|
+
data-action='spree-elta-courier#createVoucher'
|
|
8
|
+
data-spree-elta-courier-order-id-value='<%= @order.id %>'
|
|
9
|
+
data-spree-elta-courier-create-voucher-prompt-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_prompt') %>"
|
|
10
|
+
data-spree-elta-courier-create-voucher-error-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_error') %>">
|
|
11
11
|
<%= icon 'package' %>
|
|
12
12
|
<%= Spree.t('admin.integrations.elta_courier.create_voucher') %>
|
|
13
13
|
</button>
|
|
@@ -23,7 +23,9 @@ module SpreeEltaCourier
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
initializer 'spree_elta_courier.cache_sweeper', before: 'spree.admin.importmap.cache_sweeper' do |app|
|
|
26
|
-
app.config.
|
|
26
|
+
if app.config.importmap.sweep_cache && app.config.reloading_enabled?
|
|
27
|
+
app.config.spree_admin.cache_sweepers << root.join('app/javascript')
|
|
28
|
+
end
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def self.activate
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_elta_courier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OlympusOne
|
|
@@ -120,7 +120,7 @@ files:
|
|
|
120
120
|
- app/assets/images/integration_icons/elta-courier-logo.png
|
|
121
121
|
- app/controllers/spree/admin/elta_courier_controller.rb
|
|
122
122
|
- app/javascript/spree_elta_courier/application.js
|
|
123
|
-
- app/javascript/spree_elta_courier/controllers/
|
|
123
|
+
- app/javascript/spree_elta_courier/controllers/spree_elta_courier_controller.js
|
|
124
124
|
- app/lib/elta_courier/soap_client.rb
|
|
125
125
|
- app/models/spree/integrations/elta_courier.rb
|
|
126
126
|
- app/models/spree/order_decorator.rb
|
|
@@ -150,10 +150,10 @@ licenses:
|
|
|
150
150
|
- AGPL-3.0-or-later
|
|
151
151
|
metadata:
|
|
152
152
|
bug_tracker_uri: https://github.com/olympusone/spree_elta_courier/issues
|
|
153
|
-
changelog_uri: https://github.com/olympusone/spree_elta_courier/releases/tag/v1.2.
|
|
153
|
+
changelog_uri: https://github.com/olympusone/spree_elta_courier/releases/tag/v1.2.6
|
|
154
154
|
documentation_uri: https://github.com/olympusone/spree_elta_courier
|
|
155
155
|
homepage_uri: https://github.com/olympusone/spree_elta_courier
|
|
156
|
-
source_code_uri: https://github.com/olympusone/spree_elta_courier/tree/v1.2.
|
|
156
|
+
source_code_uri: https://github.com/olympusone/spree_elta_courier/tree/v1.2.6
|
|
157
157
|
rdoc_options: []
|
|
158
158
|
require_paths:
|
|
159
159
|
- lib
|
|
File without changes
|