From 071d9b23e9c57b329c7c1288662fa0770630e032 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 20 Nov 2019 22:02:01 +0100 Subject: [PATCH] #6 UI Updates senden und anzeigen --- octoprint_mystromswitch/static/js/mystromswitch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/octoprint_mystromswitch/static/js/mystromswitch.js b/octoprint_mystromswitch/static/js/mystromswitch.js index 3bc9946..8a19619 100644 --- a/octoprint_mystromswitch/static/js/mystromswitch.js +++ b/octoprint_mystromswitch/static/js/mystromswitch.js @@ -6,6 +6,8 @@ $(function() { self.settings = parameters[1]; self.printer = parameters[2]; + self.mystromswitchEnabled = ko.observable(); + // Hack to remove automatically added Cancel button // See https://github.com/sciactive/pnotify/issues/141 //PNotify.prototype.options.confirm.buttons = [];