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 = [];