Adding in percentage for uploads
This commit is contained in:
parent
05bfae264a
commit
f53d0f0529
@ -104,6 +104,9 @@ const mutations = {
|
|||||||
setETA(state, value) {
|
setETA(state, value) {
|
||||||
state.upload.eta = value;
|
state.upload.eta = value;
|
||||||
},
|
},
|
||||||
|
setUploadPercentage(state, value) {
|
||||||
|
state.upload.percentage = value;
|
||||||
|
},
|
||||||
resetUpload(state) {
|
resetUpload(state) {
|
||||||
state.upload.uploads = {};
|
state.upload.uploads = {};
|
||||||
state.upload.queue = [];
|
state.upload.queue = [];
|
||||||
@ -112,6 +115,7 @@ const mutations = {
|
|||||||
state.upload.id = 0;
|
state.upload.id = 0;
|
||||||
state.upload.speedMbyte = 0;
|
state.upload.speedMbyte = 0;
|
||||||
state.upload.eta = 0;
|
state.upload.eta = 0;
|
||||||
|
state.upload.percentage = 0;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user