Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[Request] Optional confirmation dialog before executing custom UI button command #532
Comments
This comment has been minimized.
This comment has been minimized.
|
You mean similar to what the System commands do? |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure which system commands offer the confirmation dialog. But similar to when you're about to format a hard drive, the system would say "this will erase all data. are you sure?" See below... if I click the button in the red box, I'd like to have the option to get a dialog box to confirm OK/Cancel before executing the button. If you hit save instead of load, it could overwrite work. Alternatively, I can remove this and do it manually, but I have multiple hot-end carriages, and each requires a little bit of re-calibration - so... hence the Delta calibration UI I've got here. Perhaps I missed a type of custom UI command that already has this functionality? --- I will go check the wiki |
This comment has been minimized.
This comment has been minimized.
|
I meant something like this: Which is e.g. in the example of the reboot system command, see the
But something like this is not available yet for the configurable (GCODE) controls, just wanted to clarify if we think of the same thing, which it appears we do ;) |
This comment has been minimized.
This comment has been minimized.
|
you beat me too it!!! - YES YES !!! like just like that... perhaps the confirm could include a standin so you could also have this:
where would be the exact gcode commands... the user can see the exact command before running it? Of course just having a confirm woudl be great... |
This comment has been minimized.
This comment has been minimized.
|
that would be so great! and to clarify, it might be nice even just if the commands were listed out below the message. even if it's not a placeholder that the "customizing person" would use. ;) I hadn't looked at the system commands before, except briefly, because they aren't compatible with Winders or Mac, which are what I'm using OP on. :) |
This comment has been minimized.
This comment has been minimized.
|
I would like to +1 this request. Im using a quick load / unload sequence which I would like to be confirmed before starting. If pressed accidentally it could extrude large amounts on too high speed |
This comment has been minimized.
This comment has been minimized.
|
For GCodes, it would be nice to have it print the actual command to be executed. For debugging and sanity. I have some that include the letter codes and some that use a number. so a confirmation of the GCode to be submitted would be great to show.
|
Syntax (and code) similar to System Command confirm. First commit, please be gentle.
This comment has been minimized.
This comment has been minimized.
|
Now available in the |


I just accidentally saved a smoothieboard ui config instead of loading it - so I overwrote the customized one with the DEFAULT... oops, I'm dumb! and maybe an M501 and 504 shouldn't be close to each other in my delta calibration version of octoprint. However because of this event, it got me thinking... would it be so difficult to add a boolean "confirm" where if set true you get a message box that asks you to confirm by repeating the UI text, and then the exact gcode, before submitting. and it would default to false so as not to change existing UI functionality.
If you need any further info - let me know. I think this is self explanatory, but just cuz it's clear in my own brain doesn't mean I've shared enough context. :) I'm happy to add a mock-up example. I'd code it if I had time.