Skip to content

Commit

Permalink
Added toast instead of throwing an error for the case when the amount… (
Browse files Browse the repository at this point in the history
tldraw#5201)

This PR solves the issue tldraw#5188. Throwing an error for the case when a
user is trying to upload more files than maxFilesAtOnce is replaced with
toast.

_(for testing purposes and screen recording, I reduced the max amount of
files)_

https://github.com/user-attachments/assets/b7468fd0-f14f-41c0-96d9-01f7326a0ecd

P.S.: I'm not sure about the correction of the text, so feel free to
notify me, and I'll change it :)

### Change type

- [x] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Release notes

- added toast instead of throwing an error for the case when the amount
of files is bigger than `maxFilesAtOnce`
  • Loading branch information
melnikkk authored Jan 20, 2025
1 parent c45a05a commit 9d96104
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/translations/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"assets.files.size-too-big": "File size is too big",
"assets.files.type-not-allowed": "File type is not allowed",
"assets.files.upload-failed": "Upload failed",
"assets.files.amount-too-many": "Too many files",
"assets.url.failed": "Couldn’t load URL preview",
"theme.dark": "Dark",
"theme.light": "Light",
Expand Down
Loading

0 comments on commit 9d96104

Please sign in to comment.