From cc1254f7f9483f4324b237c83d803951ac085170 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Sun, 28 Jun 2020 14:56:17 +0200 Subject: [PATCH] #21 Add PowerOFF when print is finished --- .idea/workspace.xml | 18 +++++++++--------- .../static/js/mystromswitch.js | 2 +- .../templates/mystromswitch_sidebar.jinja2 | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index fd43c5e..87e9719 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,7 @@ - + diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index dd1e4ef..86f0bb9 100644 --- a/octoprint_mystromswitch/static/js/mystromswitch.js +++ b/octoprint_mystromswitch/static/js/mystromswitch.js @@ -50,7 +50,7 @@ $(function() { self.onAutomaticPowerOffEnabledChanged = function(){ var cmd = "disablePowerOffAfterFinish"; - if (self.automaticShutdownEnabled()) { + if (self.automaticPowerOffEnabled()) { var cmd = "enablePowerOffAfterFinish"; } $.ajax({ diff --git a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 index c063687..c82d89c 100644 --- a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 +++ b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 @@ -3,12 +3,12 @@