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 @@