-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Optional confirmation dialog before executing custom UI button command #532
Comments
You mean similar to what the System commands do? |
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 |
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 ;) |
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... |
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. :) |
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 |
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.
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.
The text was updated successfully, but these errors were encountered: