diff --git a/setup.py b/setup.py
index 3ee1c165a..b87ac0bd9 100644
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,6 @@ INSTALL_REQUIRES = [
"filetype>=1.0.7,<2",
"zipstream-new>=1.1.8,<1.2",
# vendor bundled dependencies
- "unidecode", # dependency of awesome-slugify, leave w/o range to not cause dependency hell w/ Octolapse deps
"blinker>=1.4,<2", # dependency of flask_principal
]
@@ -78,6 +77,8 @@ INSTALL_REQUIRES_PYTHON2 = [
"enum34>=1.1.10,<1.2",
"frozendict==1.2", # newer versions from different maintainer require Python 3
"colorlog<5", # newer versions require Python 3
+ # vendor bundled dependencies
+ "unidecode<1.3", # dependency of awesome-slugify, newer versions require Python 3
]
# Python 3 specific requirements
@@ -88,6 +89,8 @@ INSTALL_REQUIRES_PYTHON3 = [
"immutabledict>=2.1,<3",
"pathvalidate>=2.4.1,<3",
"colorlog>=5.0.1,<6",
+ # vendor bundled dependencies
+ "unidecode", # dependency of awesome-slugify, leave w/o range to not cause dependency hell w/ Octolapse deps
]
# OSX specific requirements
diff --git a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2
index a995fe21c..40deec7bd 100644
--- a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2
+++ b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2
@@ -128,7 +128,7 @@
-
+
{{ _('Update log') }}
diff --git a/src/octoprint/static/js/app/helpers.js b/src/octoprint/static/js/app/helpers.js
index 3c7de9d76..ef6ac98e8 100644
--- a/src/octoprint/static/js/app/helpers.js
+++ b/src/octoprint/static/js/app/helpers.js
@@ -1060,18 +1060,14 @@ function showProgressModal(options, promise) {
var progress = $('
');
var progressBar = $('
').addClass(barClassSuccess);
- var progressTextBack = $('
');
- var progressTextFront = $('
').width(
- progress.width()
- );
+ var progressText = $('
');
if (max === undefined) {
progress.addClass("progress-striped active");
progressBar.width("100%");
}
- progressBar.append(progressTextFront);
- progress.append(progressTextBack).append(progressBar);
+ progress.append(progressBar).append(progressText);
var button = $('
")
.prop("disabled", true)
@@ -1127,9 +1123,16 @@ function showProgressModal(options, promise) {
// update progress bar
progressBar.width(String(value) + "%");
- progressTextFront.text(short);
- progressTextBack.text(short);
- progressTextFront.width(progress.width());
+ progressText.text(short);
+ if (value < 50 && progressText.hasClass("progress-text-front")) {
+ progressText
+ .removeClass("progress-text-front")
+ .addClass("progress-text-back");
+ } else if (value >= 50 && progressText.hasClass("progress-text-back")) {
+ progressText
+ .removeClass("progress-text-back")
+ .addClass("progress-text-front");
+ }
// if not successful, apply failure class
if (!success && !progressBar.hasClass(barClassFailure)) {