bullet_train-fields 1.0.12 → 1.0.13

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: 57c83d05b332d6afad94dcd816872f2a35bf9689629cad93358068d60bb7ca79
4
- data.tar.gz: a868e4b045e9d50adb1656b81aa6ea37e7dabd271e069c1795506f0faae8092d
3
+ metadata.gz: 22907252525d03b4c9538acf70ca2667d13d2dd56d26f32a757343e6849282ee
4
+ data.tar.gz: 1de302b7dcca8e36cb77d748a7ab9dddbb743aed6a983545fca7a61310002d63
5
5
  SHA512:
6
- metadata.gz: 20dfc98fd78d99e76d435afb7102c2129bcbb6efbf00914d4e79944f3e5818b1f273c0e6906e844be1c3b55ecbd62bf2e398e972ba7337b8fd8ad6a3f40f4f14
7
- data.tar.gz: a2e434ea610b3d39cba41ffd8561e5a21951642ce62905bd5ba9cd3efdeb0783cee7a28030a76e7e3d467776874b85e9992e1487060affec2e19f2d4d46d02f1
6
+ metadata.gz: 474bf684a22ba77f9cc7bc635292f258f376673b4a2f85671c60175c3ec603c0387dc5fb5c9aea4558c50b225fc4f7830a5d3d570d12c5aee1beed7444fd0117
7
+ data.tar.gz: 1813ba9759677f78fbb516c691ec48888965d4762b84df5c5f6a2820abfcc119787dde8f9a8270416de476b7c16f2d25a8ce0331fb5b8927cdfc0a627e880141
@@ -7,7 +7,7 @@ export default class extends Controller {
7
7
  estimateStrength(e) {
8
8
  const result = zxcvbn(e.target.value);
9
9
 
10
- if (result.feedback) {
10
+ if (result.feedback && result.feedback.length > 0) {
11
11
  this.strengthIndicatorTarget.innerText = `${result.feedback.warning}.`;
12
12
  this.strengthIndicatorTarget.classList.remove("hidden");
13
13
  } else {
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver