-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replaces the single file upload and will enable the user to upload multiple files at once. BREAKING CHANGE: This requires the caluma backend version v8.0.0-beta.12 or later.
- Loading branch information
1 parent
807c280
commit 48db5ac
Showing
34 changed files
with
399 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../gql/mutations/save-file-question.graphql → ...gql/mutations/save-files-question.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="uk-flex-middle uk-grid-divider uk-grid-column-small" uk-grid> | ||
<div uk-form-custom="target: true"> | ||
|
||
<input | ||
type="file" | ||
name={{@field.pk}} | ||
id={{@field.pk}} | ||
disabled={{@disabled}} | ||
multiple | ||
{{on "change" this.save}} | ||
/> | ||
<UkButton disabled={{@disabled}}> | ||
{{t "caluma.form.selectFile"}} | ||
</UkButton> | ||
</div> | ||
<ul class="uk-list uk-list-collapse" data-test-file-list={{@field.pk}}> | ||
{{#each this.files as |file|}} | ||
<li class="uk-text-justify uk-text-middle"> | ||
<UkButton | ||
data-test-download-link={{file.id}} | ||
@color="link" | ||
@onClick={{fn this.download file.id}} | ||
> | ||
{{file.name}} | ||
</UkButton> | ||
<UkIcon | ||
class="uk-icon-button uk-margin-small-left" | ||
role="button" | ||
@icon="trash" | ||
{{on "click" (fn this.delete file.id)}} | ||
/> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> |
Oops, something went wrong.