Adding in percentage for uploads

This commit is contained in:
Alex Yong 2024-03-28 17:07:01 -04:00 committed by GitHub
parent 05bfae264a
commit f53d0f0529
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,9 @@ const mutations = {
setETA(state, value) {
state.upload.eta = value;
},
setUploadPercentage(state, value) {
state.upload.percentage = value;
},
resetUpload(state) {
state.upload.uploads = {};
state.upload.queue = [];
@ -112,6 +115,7 @@ const mutations = {
state.upload.id = 0;
state.upload.speedMbyte = 0;
state.upload.eta = 0;
state.upload.percentage = 0;
},
};