Commit 2b1dfb56 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Progress bar minor change

parent 394925d7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -70,7 +70,10 @@ export default {

        reader.addEventListener('progress', (event) => {
          if (event.loaded && event.total) {
            let percent = (event.loaded / event.total) * 100;
            // using 99 instead of 100 because progress reaches 100% at the end
            // of the upload but MD5 computation takes some time and showing a
            // completed progress bar could be misleading
            let percent = (event.loaded / event.total) * 99;
            commit('setProgress', { index, percent });
          }
        });