Commit f018fa8
authored
Fixed the file upload issue (#2552)
- Ticket: ### [ENG-7588]
- Feature flag: n/a
## Purpose
There was the slightest chance of a race condition that I fixed using the "preUpload" called and a spinner.
I first tried to use "enabled=false" and it literally destroys the entire widget. So then I moved to the spinner
## Summary of Changes
Add a variable and preUpload method to the component.
Added the variable to the spinner conditional statement to display the spinner once the file is uploaded.
[ENG-7588]: https://openscience.atlassian.net/browse/ENG-75881 parent 584da77 commit f018fa8
File tree
2 files changed
+11
-2
lines changed- app/preprints/-components/submit/file/upload-file
2 files changed
+11
-2
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
102 | 111 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments