Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Dec 28, 2023
1 parent 8e288d6 commit 7df46fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions args.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Binary file added images/action-confirmation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7df46fe

Please sign in to comment.