4
0

input_confirmation.adoc 587 B

123456789101112131415161718192021
  1. [#confirmation]
  2. = Input: Confirmation
  3. 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.
  4. [source,yaml]
  5. ----
  6. actions:
  7. - title: Delete old backups
  8. icon: ashtonished
  9. shell: rm -rf /opt/oldBackups/
  10. arguments:
  11. - type: confirmation
  12. title: Are you sure?!
  13. ----
  14. image::action-confirmation.png[]
  15. Notice in the webui the "start" button is disabled.