bard-file_field 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/bard-file.js +3 -1
- data/lib/bard/file_field/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21a07daaa98d68d77291864ff9fd6d4d84c015839969e080a07bbc14c1090e16
|
4
|
+
data.tar.gz: 65464101a67f2e72a5a5e52c2d88f81890d5114ec46fc79afde1b0ae9b3797a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70538874bffa086fa2a73835e262117de7a7bffcc73b0d17bede1744078d071320cf14630413f7acc0c4ea36a229812a9386739c7ffb6f8aec8670277760a2a4
|
7
|
+
data.tar.gz: 19078bfe61accc9cec5fea853a2bf8909846c9daa8688f740042d40bd6398b4078b66f7b236165b4394259b9016e4063116d15f78b2a13da79d29497ff2117fa
|
data/Gemfile.lock
CHANGED
@@ -4790,7 +4790,9 @@ const BardFile$1 = /*@__PURE__*/ proxyCustomElement(class BardFile extends H {
|
|
4790
4790
|
componentWillLoad() {
|
4791
4791
|
this.el.removeAttribute("id");
|
4792
4792
|
FormController.instance(this.el.closest("form"));
|
4793
|
-
|
4793
|
+
const existingFiles = Array.from(this.el.children).filter(e => e.tagName == "UPLOADED-FILE");
|
4794
|
+
if (existingFiles.length > 0)
|
4795
|
+
this.files = existingFiles;
|
4794
4796
|
}
|
4795
4797
|
// Methods
|
4796
4798
|
get files() {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard-file_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage
|