From 9ed829976a5e7ed9c3ec473f8fbbe3b7f5f57bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 15:27:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20notifications=20for=20sing?= =?UTF-8?q?le=20installs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also: a typo --- .../plugins/pluginmanager/static/js/pluginmanager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index c27e8b54b..9dd0c37d4 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -500,7 +500,7 @@ $(function () { showConfirmationDialog({ title: gettext("Confirm installation of multiple plugins"), message: gettext( - "Please confirm you want to perform all plugins specified in the json file:" + "Please confirm you want to perform all plugins specified in the json file." ), cancel: gettext("Cancel"), proceed: gettext("Install"), @@ -1650,9 +1650,6 @@ $(function () { self._processPluginManagementResult = function (response, action, plugin) { if (response.type == "partial_result") { - self._addPluginManagementLog(response, action, plugin); - self._displayPluginManagementNotification(); - if (!response.result) { self.loglines.push({line: gettext("Error!"), stream: "error"}); self.loglines.push({line: response.reason, stream: "error"}); @@ -1701,6 +1698,9 @@ $(function () { self._markDone(response.reason, response.faq); } } + + self._addPluginManagementLog(response, action, plugin); + self._displayPluginManagementNotification(); }; self._extractActionAndNameFromResult = function (result) {