Merge pull request #1550 from dattas/feature/cancel-confirmation

Add confirmation dialog to cancel to prevent accidental cancel of prints
This commit is contained in:
Gina Häußge authored and GitHub committed 2016-10-26 11:03:40 +02:00
commit 35cf623f81
1 file changed
+6 -1
@@ -288,7 +288,12 @@ $(function() {
};
self.cancel = function() {
OctoPrint.job.cancel();
showConfirmationDialog({
message: gettext("This will cancel your print."),
onproceed: function() {
OctoPrint.job.cancel();
}
});
};
}