Revert "#6 UI Updates senden und anzeigen"

This reverts commit f83d4259
This commit is contained in:
David Zingg
2019-11-20 21:01:15 +01:00
parent f83d425915
commit b3b0329e50
2 changed files with 4 additions and 14 deletions

View File

@ -129,20 +129,14 @@ $(function() {
}
}
self.onEventPrinterStateChanged = function(payload) {
if (payload.state_id == "PRINTING" || payload.state_id == "PAUSED"){
self.testButtonChangeStatus(true);
} else {
self.testButtonChangeStatus(false);
}
}
self.mystromswitchEnabled.subscribe(self.onmystromswitchEvent, self);
self.onDataUpdaterPluginMessage = function(plugin, data) {
if (plugin != "mystromswitch" && plugin != "octoprint_mystromswitch") {
return;
}
self.mystromswitchEnabled(data.mystromswitchEnabled);
if (data.power != null) {
self.timeoutPopupOptions.text = self.timeoutPopupText + data.power;
if (typeof self.timeoutPopup != "undefined") {