Skip to content

Commit a27b6ec

Browse files
authored
Hotfix fileuploads
this needs to be fixed later but this works for now
1 parent a983f03 commit a27b6ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/model-form/file-input.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{label}}{{if required ' *'}}
33
</label>
44
<div class='{{inputWrapperClass}}'>
5-
{{#let (file-queue name="fileUpload" onFileAdded=fileLoaded) as |queue|}}
5+
{{#let (file-queue name="fileUpload" onFileAdded=(action 'fileLoaded')) as |queue|}}
66
<label for="upload-file" class="form-label {{if not (get model property) "border rounded p-2 w-100"}}">
77
{{#if (get model property)}}
88
<img id={{inputIdentifier}} src={{mut (get model property)}} alt={{label}} role="button" tabindex="0"
@@ -33,4 +33,4 @@
3333
{{/if}}
3434

3535
{{form-control-feedback (get @model.errors property)}}
36-
</div>
36+
</div>

0 commit comments

Comments
 (0)