@rails/actiontext 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ export class AttachmentUpload {
|
|
|
4
4
|
constructor(attachment, element) {
|
|
5
5
|
this.attachment = attachment
|
|
6
6
|
this.element = element
|
|
7
|
-
this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this
|
|
7
|
+
this.directUpload = new DirectUpload(attachment.file, this.directUploadUrl, this)
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
start() {
|
|
@@ -42,11 +42,4 @@ export class AttachmentUpload {
|
|
|
42
42
|
get blobUrlTemplate() {
|
|
43
43
|
return this.element.dataset.blobUrlTemplate
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
get directUploadToken() {
|
|
47
|
-
return this.element.getAttribute("data-direct-upload-token");
|
|
48
|
-
}
|
|
49
|
-
get attachmentName() {
|
|
50
|
-
return this.element.getAttribute("data-direct-upload-attachment-name");
|
|
51
|
-
}
|
|
52
45
|
}
|