workarea-admin 3.4.43 → 3.4.44

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: 77790287084463abb8d04c359a6d42c242195353e79735b9e09b7661ed37a724
4
- data.tar.gz: 15ffda628b192e3cb6f50195142b374d8e67ba1f354cc5110c215a32d263da44
3
+ metadata.gz: 4a003c5c06c6e7ebad65a86478c4bbbb40d48041938772cdefcdf84b1d789b66
4
+ data.tar.gz: 165c1102a376250bd6560411198c846b5a926ddc65bae27deac354d48655399f
5
5
  SHA512:
6
- metadata.gz: 4a6ad1147f3584866134b8ff83e3228fa15f9e8fa96c48557100fa996f6ba09b5bd9d48985fd31049a40c648fbd4ba653a2590a4881dbf25908981ca27751d43
7
- data.tar.gz: 7f2f2d7940d4901d35f3274bab3b26e93aec4530c48544d214e9e0dc8c41474d2f8ae81a7b9978d06672844f34c5aea8ed2546b6c527278f18a926ea6c5b8abb
6
+ metadata.gz: 337cc3074deb6d2e4bf4c0b89276bf5b5a6d79b8e59218c22b806b69d70419dfc7f6c752883483dcbf711cbfaa60c975786c7d18dfb6cdccf769a409b01963bf
7
+ data.tar.gz: a139b01f60d5660be066ffe4bf5485bf8ba78265af718f690e2f4d86e1bd0063fdb21a07cc2a3a2d8cfa63ef4c92dc630a02a8f7b20e04f5561ff1e1b8c7e5ea
@@ -166,6 +166,10 @@ module Workarea
166
166
  .map { |unit, val| t("workarea.duration.#{unit}", count: val) }
167
167
  .to_sentence
168
168
  end
169
+
170
+ def navigation_redirects_enabled?
171
+ !Rails.application.config.consider_all_requests_local
172
+ end
169
173
  end
170
174
  end
171
175
  end
@@ -5,6 +5,11 @@
5
5
  .view__heading
6
6
  = link_to "↑ #{t('workarea.admin.navigation_redirects.index.dashboard_link')}", settings_dashboards_path, class: 'view__dashboard-button'
7
7
  %h1= t('workarea.admin.navigation_redirects.index.title')
8
+ - unless navigation_redirects_enabled?
9
+ .grid.grid--center
10
+ .grid__cell.grid__cell--50
11
+ = render_message 'warning' do
12
+ = t('workarea.admin.navigation_redirects.index.disabled')
8
13
 
9
14
  .view__container
10
15
 
@@ -2288,6 +2288,10 @@ en:
2288
2288
  destination_label: Redirect To
2289
2289
  destination_note: Can be any URL
2290
2290
  destination_placeholder: "/new/path.html"
2291
+ disabled: >
2292
+ This application is configured to consider requests to be local, so the Workarea exception handling isn't used.
2293
+ This is most likely because it's running the development environment, where you want exceptions to be seen in responses.
2294
+ These redirects won't work without this.
2291
2295
  from: From
2292
2296
  import: Import Redirects
2293
2297
  modified: Modified
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.43
4
+ version: 3.4.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.43
19
+ version: 3.4.44
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.43
26
+ version: 3.4.44
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: workarea-storefront
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.4.43
33
+ version: 3.4.44
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.4.43
40
+ version: 3.4.44
41
41
  description: Provides site administration functionality for the Workarea Commerce
42
42
  Platform.
43
43
  email: