From 7d40320a5b05983b2114df2f0ed79d3b29cd2826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 15 May 2018 17:05:54 +0200 Subject: [PATCH] SWU: Fix another leftover wrong permission name --- .../plugins/softwareupdate/static/js/softwareupdate.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index 1416a43e7..efc5f851e 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -565,7 +565,7 @@ $(function() { }; self._showWorkingDialog = function(title) { - if (!self.loginState.hasPermission(self.access.permissions.PLUGIN_SOFTWAREUPDATE_PERFORM)) { + if (!self.loginState.hasPermission(self.access.permissions.PLUGIN_SOFTWAREUPDATE_UPDATE)) { return; } @@ -686,8 +686,6 @@ $(function() { break; } case "updating": { - console.log(JSON.stringify(messageData)); - text = _.sprintf(gettext("Now updating %(name)s to %(version)s"), {name: messageData.name, version: messageData.version}); self.loglines.push({line: "", stream: "separator"}); self.loglines.push({line: _.repeat("+", text.length), stream: "separator"}); @@ -705,8 +703,6 @@ $(function() { break; } case "restarting": { - console.log(JSON.stringify(messageData)); - title = gettext("Update successful, restarting!"); text = gettext("The update finished successfully and the server will now be restarted."); @@ -745,8 +741,6 @@ $(function() { break; } case "restart_manually": { - console.log(JSON.stringify(messageData)); - restartType = messageData.restart_type; text = gettext("The update finished successfully, please restart OctoPrint now."); if (restartType === "environment") {