You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
feat: implement abort upload functionality (#2673)
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user