We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dfb0ee commit fb91ad9Copy full SHA for fb91ad9
octoprint_mrbeam/static/js/mother_viewmodel.js
@@ -52,6 +52,24 @@ $(function () {
52
"Starts the laser job"
53
);
54
55
+ // override the default octoprint cancel modal
56
+ self.state.cancel = function() {
57
+ if (!self.settings.feature_printCancelConfirmation()) {
58
+ OctoPrint.job.cancel();
59
+ } else {
60
+ showConfirmationDialog({
61
+ message: gettext("The laserjob will be cancelled."),
62
+ question: gettext("Do you still want to cancel?"),
63
+ cancel: gettext("No"),
64
+ proceed: gettext("Yes"),
65
+ proceedClass: "primary",
66
+ onproceed: function() {
67
68
+ }
69
+ });
70
71
+ };
72
+
73
self.onStartup = function () {
74
// TODO fetch machine profile on start
75
//self.requestData();
0 commit comments