diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 201ac4c..59baa9c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,6 @@
-
@@ -40,16 +39,16 @@
-
-
+
+
-
-
+
+
@@ -60,8 +59,8 @@
-
-
+
+
@@ -69,20 +68,20 @@
-
+
-
-
+
+
-
+
-
+
@@ -95,6 +94,7 @@
onmystromswitchEvent
showShutdownOctopiOption
onOffButtonEnabled
+ onToggleRelayEvent
@@ -110,8 +110,8 @@
-
+
@@ -198,20 +198,6 @@
1574193087583
-
- 1574283002922
-
-
-
- 1574283002922
-
-
- 1574283107060
-
-
-
- 1574283107060
-
1574283263948
@@ -541,7 +527,21 @@
1582991720560
-
+
+ 1582992279872
+
+
+
+ 1582992279872
+
+
+ 1582992989361
+
+
+
+ 1582992989361
+
+
@@ -650,25 +650,25 @@
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js
index 67adab6..99e2896 100644
--- a/octoprint_mystromswitch/static/js/mystromswitch.js
+++ b/octoprint_mystromswitch/static/js/mystromswitch.js
@@ -70,8 +70,8 @@ $(function() {
return;
}
self.onOffButtonEnabled(data.onOffButtonEnabled);
- //self.showShutdownOctopiOption(data.showShutdownOctopiOption);
- //self.showPowerOffPrintFinishOption(data.showPowerOffPrintFinishOption);
+ self.showShutdownOctopiOption(data.showShutdownOctopiOption);
+ self.showPowerOffPrintFinishOption(data.showPowerOffPrintFinishOption);
self.mystromswitchEnergyValue.innerHTML = "Energy: "+data.energy.toFixed(1)+"Wh"
if(data.relay == false){
self.mystromswitchPowerValue.innerHTML = "Relay is off";