beyond-rails 0.0.277 → 0.0.282

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: '086454b869902332316514def36675eca9a02b1419aa38c2ba5c7f73682e6d3d'
4
- data.tar.gz: 5ee5a23161b56ca2a0e803fc3cd76629dc25a7dc5a66edb96d2040ad53924a52
3
+ metadata.gz: 84764131a5737bd683cf3690338141c3827bd1711f3855fdde09a278d50e4baf
4
+ data.tar.gz: 43b9c768e48c899fc86cdecb4d7f4229e530e037a01dea8f4959c0a9cce9d77a
5
5
  SHA512:
6
- metadata.gz: d7a89928221e3d295e0aa26a941f76eb4386f040cdd246a9c201591d023f0da5865dcb901d0ef494d51c5dd4396b955a0eb684eae543c96bdfe223a036ca3038
7
- data.tar.gz: 832963f43c75f4273baf79b426601e65606026ec8a8cef035a5782ba9711732305f779bd78ed79e56b119a74f16c066ae921faff304234d5c890b2f7c6f31972
6
+ metadata.gz: 324798b34628570b49bd35bf346c9f5e1e3460a78d62983b649293adebf2b36c919aea9b2ae28cf2d751aee7d160cb5dee4a8e358f1f38a2d6c0f5e3566e44fc
7
+ data.tar.gz: dd6558c7597206de7ad26883918b0f9b66a0b4750ef59c332386503313de666440c6cb888fa76f4d45f8bae7aacc68e6f364f0b89dac2d1c5e0687ba510ea28c
@@ -11,8 +11,11 @@ export default class Btn {
11
11
  }
12
12
 
13
13
  showLoader() {
14
+ if (this.loading) {
15
+ return
16
+ }
14
17
  const { dom } = this
15
- this._innerHtml = dom.innerHTML
18
+ this.innerHtml = dom.innerHTML
16
19
  dom.style.height = toPixel(dom.offsetHeight)
17
20
  dom.style.width = toPixel(dom.offsetWidth)
18
21
  dom.innerHTML = `
@@ -28,14 +31,23 @@ export default class Btn {
28
31
  }
29
32
 
30
33
  hideLoader() {
34
+
35
+ if (! this.loading) {
36
+ return
37
+ }
31
38
  const { dom } = this
32
39
  dom.style.removeProperty('width')
33
40
  dom.style.removeProperty('height')
34
- dom.innerHTML = this._innerHtml
41
+
42
+ const { innerHtml } = this
43
+
44
+ if (innerHtml) {
45
+ dom.innerHTML = innerHtml
46
+ }
35
47
  }
36
48
 
37
49
  setLoading(loading) {
38
- this.loading = loading
39
50
  loading ? this.showLoader() : this.hideLoader()
51
+ this.loading = loading
40
52
  }
41
53
  }
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
  }
43
+
44
+ .alert.alert-dismissible {
45
+ padding-right: 3rem;
46
+ }
43
47
  .alert-dismissible .close {
44
48
  position: absolute;
45
49
  top: 0;
@@ -78,6 +78,7 @@
78
78
  font-size: 14px;
79
79
  font-weight: 400;
80
80
  }
81
+ .btn.btn-danger,
81
82
  .btn.btn-primary {
82
83
  margin-left: 10px;
83
84
  }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.277
4
+ version: 0.0.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
8
8
  - Eddie Li
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-25 00:00:00.000000000 Z
12
+ date: 2021-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc
@@ -93,7 +93,7 @@ dependencies:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: 3.3.0
96
- description:
96
+ description:
97
97
  email: kmsh3ng@gmail.com
98
98
  executables: []
99
99
  extensions: []
@@ -273,7 +273,7 @@ homepage: https://superlanding.github.io/beyond/
273
273
  licenses:
274
274
  - MIT
275
275
  metadata: {}
276
- post_install_message:
276
+ post_install_message:
277
277
  rdoc_options: []
278
278
  require_paths:
279
279
  - lib
@@ -288,8 +288,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  - !ruby/object:Gem::Version
289
289
  version: '0'
290
290
  requirements: []
291
- rubygems_version: 3.0.3
292
- signing_key:
291
+ rubygems_version: 3.0.9
292
+ signing_key:
293
293
  specification_version: 4
294
294
  summary: beyond is a collection of frontend components which aims for admin website.
295
295
  test_files: []