From 05cbe89d8798eb05533f0c4662f974d7ba18746b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 19 Mar 2020 16:45:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Keep=20load&print=20button=20act?= =?UTF-8?q?ive=20if=20file's=20already=20loaded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For some reason people just don't seem to see the big fat blue "Print" button on their loaded print job and then get confused when they can't reprint the same file that's already loaded. So let's work around this. --- src/octoprint/static/js/app/viewmodels/files.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index c90decd0b..f63de7b57 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -648,8 +648,7 @@ $(function() { }; self.enableSelectAndPrint = function(data, printAfterSelect) { - var isLoadAndPrintActionPossible = self.isLoadAndPrintActionPossible(); - return isLoadAndPrintActionPossible && !self.listHelper.isSelected(data); + return self.isLoadAndPrintActionPossible(); };