🐛 Fix bug in slicing progress reporting to UI (#4636)
in the event handler onSlicingStarted the uploadProgressPercentage was given the parameter perecntage, but this was not know, so it will throw an error. As this is the start of the slicing the correct value should be 0
This commit is contained in:
1 parent
efdf127df8
commit
4625e6aa7b
1 file changed
+1
-1
@@ -1464,7 +1464,7 @@ $(function () {
|
||||
self.uploadProgress.addClass("progress-striped").addClass("active");
|
||||
self.uploadProgressBar.css("width", "100%");
|
||||
if (payload.progressAvailable) {
|
||||
self.uploadProgressPercentage(percentage);
|
||||
self.uploadProgressPercentage(0);
|
||||
self.uploadProgressText(
|
||||
_.sprintf(gettext("Slicing ... (%(percentage)d%%)"), {percentage: 0})
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user