Commit 9cff2b7
committed
fix(files): guard the archive download against concurrent clicks
Navigating to the route meant a second click just re-navigated. Fetching the
archive instead means each click starts another download that holds the whole
zip in tab memory, and the Download button gave no sign anything was happening.
The button now reflects the in-flight download alongside the existing move and
delete states. The ref guard is there as well as the state because two clicks in
the same tick would both pass a state check.1 parent 9840f37 commit 9cff2b7
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1075 | 1080 | | |
1076 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1077 | 1085 | | |
1078 | 1086 | | |
1079 | 1087 | | |
1080 | 1088 | | |
1081 | 1089 | | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1082 | 1093 | | |
1083 | 1094 | | |
1084 | 1095 | | |
| |||
1991 | 2002 | | |
1992 | 2003 | | |
1993 | 2004 | | |
1994 | | - | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
1995 | 2008 | | |
1996 | 2009 | | |
1997 | 2010 | | |
| |||
0 commit comments