spree_frontend 4.2.1 → 4.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb44ce8a344e6b78adcb87064ed90e0ec7f3f02cfc474dda6d16d41e1077e733
4
- data.tar.gz: 7febb328e551e0396decabb7e357c626c39ab573d71895dc6e55d115bb9d6e7c
3
+ metadata.gz: bc15dc29068884259f1d7ef14b4f3f0dd8609b84c1fc994cf6221b5e618d476c
4
+ data.tar.gz: be1e02ad564e7851d38a6936d53512385cd7d37a6e29ac7b581eb6e1cbfd9b26
5
5
  SHA512:
6
- metadata.gz: cd5453aa3218dbbedadfc27b7f3958b33560f0d8ec33d03aee58b1d22b3c255c6cded27469e2a1b6194fb73fd0e5c658545aeb90e6003dbc6355694457ec46be
7
- data.tar.gz: 67815113708206d6f6bab183804c7005d8ccaa707005ff6392d38eebd4b9462951833d8507da6617011a6e4052c208c67bc3be49039f25c5b5cad9e3077b9c31
6
+ metadata.gz: b88b315876bc7d0869958bb8c53498166d3b2f70faf2d16c2b21e239ef1ed99cdd1cc95358d306cdf680a3ca2f8b2c824351450a5dac719de4119a22d78dfbc6
7
+ data.tar.gz: 7864ea2c02aaaf3279b285e6dc5af7918f9a081ed200ec92515c91a1aa284e29a9c22260e66e89eb496af82d5c5e84c8d10186800d115968aaa8fec69d8405f5
@@ -41,8 +41,10 @@ module Spree
41
41
  [
42
42
  current_store,
43
43
  current_currency,
44
- I18n.locale
45
- ]
44
+ I18n.locale,
45
+ try_spree_current_user.present?,
46
+ try_spree_current_user.try(:has_spree_role?, 'admin')
47
+ ].compact
46
48
  end
47
49
 
48
50
  def store_last_modified
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  <div class="row pt-5 justify-content-center align-items-center product-added-modal-product">
36
36
  <div class="col-4 col-sm-2 product-added-modal-product-image-container">
37
- <img class="product-added-modal-product-image-container-image" src="data:," alt="<%= @product.name %>">
37
+ <img class="product-added-modal-product-image-container-image" src="data:," alt="<%= @product&.name %>">
38
38
  </div>
39
39
  <div class="col-8 col-sm-6 col-lg-4 py-1 product-added-modal-product-details">
40
40
  <div class="product-added-modal-product-details-name"></div>
@@ -48,7 +48,7 @@
48
48
  <div class="row pb-4 justify-content-center">
49
49
  <div class="col-12 col-lg-8">
50
50
  <%= link_to spree.checkout_path, class: 'btn btn-primary w-100 font-weight-bold text-uppercase product-added-modal-button', method: :get do %>
51
- <%= Spree.t('pdp.checkout') %>
51
+ <%= Spree.t(:checkout) %>
52
52
  <% end %>
53
53
  </div>
54
54
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-05 00:00:00.000000000 Z
12
+ date: 2021-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_api
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 4.2.1
20
+ version: 4.2.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 4.2.1
27
+ version: 4.2.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: spree_core
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 4.2.1
34
+ version: 4.2.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 4.2.1
41
+ version: 4.2.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bootstrap
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -793,9 +793,9 @@ licenses:
793
793
  - BSD-3-Clause
794
794
  metadata:
795
795
  bug_tracker_uri: https://github.com/spree/spree/issues
796
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.1
796
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.2
797
797
  documentation_uri: https://guides.spreecommerce.org/
798
- source_code_uri: https://github.com/spree/spree/tree/v4.2.1
798
+ source_code_uri: https://github.com/spree/spree/tree/v4.2.2
799
799
  post_install_message:
800
800
  rdoc_options: []
801
801
  require_paths:
@@ -812,7 +812,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
812
812
  version: '0'
813
813
  requirements:
814
814
  - none
815
- rubygems_version: 3.2.3
815
+ rubygems_version: 3.1.4
816
816
  signing_key:
817
817
  specification_version: 4
818
818
  summary: Frontend e-commerce functionality for the Spree project.