feat: implement abort upload functionality (#2673)

This commit is contained in:
M A E R Y O
2023-08-28 06:59:49 +09:00
committed by GitHub
parent 95fec7f694
commit a404fb043d
5 changed files with 55 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ const getters = {
isListing: (state, getters) => getters.isFiles && state.req.isDir,
selectedCount: (state) => state.selected.length,
progress: (state) => {
if (state.upload.progress.length == 0) {
if (state.upload.progress.length === 0) {
return 0;
}
@@ -14,9 +14,7 @@ const getters = {
return Math.ceil((sum / totalSize) * 100);
},
filesInUploadCount: (state) => {
let total =
Object.keys(state.upload.uploads).length + state.upload.queue.length;
return total;
return Object.keys(state.upload.uploads).length + state.upload.queue.length;
},
filesInUpload: (state) => {
let files = [];