From f0491047006ef9417b94b494065dafc55a145187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 3 Mar 2022 15:23:01 +0100 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=8E=A8=20swu:=20less=20repetition=20i?= =?UTF-8?q?n=20queue=20countdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/softwareupdate.js | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index 2de85091f..060fb1f8d 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -1321,32 +1321,31 @@ $(function () { : progress_percent > 75 ? "progress-success" : "progress-warning"; + var countdownText = _.sprintf( + gettext("Updating in %(sec)i secs..."), + { + sec: messageData.timeout_value + } + ); + queuedUpdatesPopupOptions.title = gettext( "Starting Queued Updates" ); queuedUpdatesPopupOptions.text = - '
- {{ _('This does not look like a valid plugin. Valid plugins should be either zip files or tarballs installable via pip that have the extension ".zip", ".tar.gz", ".tgz" or ".tar", or single file python plugins with the extension ".py"') }} +