Add confirmation dialog to cancel to prevent accidental cancel of print (which is hard to undo!)
This commit is contained in:
parent
b38d1810dc
commit
7fb2745f8f
1 changed files with 6 additions and 1 deletions
|
|
@ -288,7 +288,12 @@ $(function() {
|
|||
};
|
||||
|
||||
self.cancel = function() {
|
||||
OctoPrint.job.cancel();
|
||||
showConfirmationDialog({
|
||||
message: gettext("This will cancel your print."),
|
||||
onproceed: function() {
|
||||
OctoPrint.job.cancel();
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue