cased-rails 0.7.0 → 0.8.0

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: eb71de8c59fee480a4d8b963ce1d047a05b4443e306b786e99a56d8dbbda82c5
4
- data.tar.gz: 78d560aebe75da05140f7d923d3d488b2bf1fa343370e8affacbf4d42cc95d4d
3
+ metadata.gz: f83e07d91751410673496fea04634a147736d1bbc2b4aec44dd018be8c49ea54
4
+ data.tar.gz: 1f0160bec6805185f337a088f6ef7dd1de867a92d84d0c84be088a0a7d40614f
5
5
  SHA512:
6
- metadata.gz: 349173760657641cff090db98784adfe7e79f8265494f705d05478c8e6de64892106887e42fb2e64ef9d058408e85b5fa8d77dd8868d9553872b2f4eae8d4114
7
- data.tar.gz: e231602f4b719de10627b5634a9c79c4dc2ce5ab9cdce0b9dc633a7953a02ec661b90ab8ae82d4d185bc3dc2e87a122159ab875168ec70ae1a3c8b1f39771487
6
+ metadata.gz: 61d8ac8812e70372d5ac1200e4c57410727a2807ae9553ae7b38e1a909524cc50cdc011c468278c8f178bb50614280512bf7eb167155110bbf69f0404364fdcd
7
+ data.tar.gz: 99df3ef94f912bf24658a21dfaca143ca33e3d4bed1853a36c52ac7b819136f01f0161d1c3d8c59b3ec9b0a0409923a24bc3155a198fc0458a70c0eeb82efd19
@@ -72,4 +72,15 @@ window.addEventListener("DOMContentLoaded", (event) => {
72
72
  casedLoggedOutContainer.classList.remove("hidden");
73
73
  });
74
74
  }
75
+
76
+ const casedReasonFormContainer = document.getElementById("guard-reason-required-form");
77
+ if (casedReasonFormContainer) {
78
+ casedReasonFormContainer.addEventListener("submit", (event) => {
79
+ const submitButton = event.currentTarget.querySelector("button[type='submit']");
80
+ // Container will change after submission; no need to re-enable the button
81
+ if (submitButton) {
82
+ submitButton.disabled = true;
83
+ }
84
+ });
85
+ }
75
86
  });
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cased
4
4
  module Rails
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cased-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garrett Bjerkhoel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cased-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.1
19
+ version: 0.7.0
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: 0.6.1
26
+ version: 0.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jbuilder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 7.0.0
47
+ version: 6.0.0
48
+ - - "<="
49
+ - !ruby/object:Gem::Version
50
+ version: '7.1'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - ">="
53
56
  - !ruby/object:Gem::Version
54
- version: 7.0.0
57
+ version: 6.0.0
58
+ - - "<="
59
+ - !ruby/object:Gem::Version
60
+ version: '7.1'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rexml
57
63
  requirement: !ruby/object:Gem::Requirement