Fix issue #7 (#10)

* Fix save 0 steps/mm- now it shows an error if steps<-0
This commit is contained in:
Sergiu Toporjinschi
2022-02-14 22:57:26 +02:00
committed by GitHub
parent 6a02270135
commit 29ff606e33
16 changed files with 75 additions and 216 deletions
@@ -55,18 +55,8 @@
self.restart = function () { OctoPrint.system.executeCommand('core', 'restart') };
self.test = function () {
OctoPrint.simpleApiCommand("CalibrationTools", "pid_save").done(function (response) {
new PNotify({
title: "Saved",
text: "PID values successfully saved",
type: "info"
});
}).fail(function (response) {
new PNotify({
title: "Test request",
text: response.responseJSON.error.msg,
type: "error"
});
});
self.generalVM.notifyInfo("Saved", "PID values successfully saved");
}).fail(self.generalVM.failFunction);;
};
self.onSettingsClick = function () {