From 5fc22593f945e357a7db6ee0f68d2bf77bae608c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 11 Aug 2021 15:08:45 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20swu:=20Remove=20active=20cla?= =?UTF-8?q?ss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4207 --- .../softwareupdate/templates/softwareupdate_settings.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') }}

From 4bdf904eeb45fa052ce45901a3771a3892780f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 9 Sep 2021 11:41:39 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=AC=87=EF=B8=8F=20Keep=20unidecode=20=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 From 0bba8be6dce5d85f7d772b838febbe332f50185a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 9 Sep 2021 12:22:30 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=90=9B=20Convert=20showProgressDialog?= =?UTF-8?q?=20to=20#4105=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4210 --- src/octoprint/static/js/app/helpers.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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)) {