From f53d0f0529cd1ddb70e2534ab855f65b984cd4f4 Mon Sep 17 00:00:00 2001 From: Alex Yong Date: Thu, 28 Mar 2024 17:07:01 -0400 Subject: [PATCH] Adding in percentage for uploads --- frontend/src/store/mutations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/store/mutations.js b/frontend/src/store/mutations.js index 1f9912c5..f01deaef 100644 --- a/frontend/src/store/mutations.js +++ b/frontend/src/store/mutations.js @@ -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; }, };