Skip to content

Commit

Permalink
fix: enable batch download
Browse files Browse the repository at this point in the history
  • Loading branch information
DJChanahCJD committed Dec 14, 2024
1 parent 79d2cf2 commit 8ecaadf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions admin-imgtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,9 @@
this.selectedFiles.forEach((file, index) => {
setTimeout(() => {
const link = document.createElement('a');
link.style.display = 'none';
link.href = `/file/${file.name}`;
link.download = file.metadata.fileName || file.name;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}, index * 800);
});
this.selectedFiles = [];
Expand Down Expand Up @@ -653,6 +650,7 @@
switch (command) {
case 'copy': this.handleBatchCopy(); break;
case 'delete': this.handleBatchDelete(); break;
case 'download': this.handleBatchDownload(); break;
case 'block': this.handleBatchBlockOrUnblock('Block'); break;
case 'unblock': this.handleBatchBlockOrUnblock('White'); break;
}
Expand Down

0 comments on commit 8ecaadf

Please sign in to comment.