diff --git a/args.adoc b/args.adoc index ed041e2d1..da75f1ddf 100644 --- a/args.adoc +++ b/args.adoc @@ -103,3 +103,20 @@ Then finally, when you execute this command, it would look something like this ( image::images/args-choices-exec.png[] +=== Confirmation argument + +The `confirmation` type argument is a special argument type, which simply disables the "Start" button until a checkbox is ticked. This can be useful if you have an action with no other arguments, but you want to prevent accidental button-clicks starting the action. + +---- +actions: + - title: Delete old backups + icon: ashtonished + shell: rm -rf /opt/oldBackups/ + arguments: + - type: confirmation + title: Are you sure?! +---- + +image::images/action-confirmation.png[] + +Notice in the webui the "start" button is disabled. diff --git a/images/action-confirmation.png b/images/action-confirmation.png new file mode 100644 index 000000000..d681c03ff Binary files /dev/null and b/images/action-confirmation.png differ