Skip to content

Commit 3db6bf6

Browse files
committed
✨ error/warn/log to console from commands
Signed-off-by: Bruno Meilick <[email protected]>
1 parent 496d29e commit 3db6bf6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ The button you create with the `field: janitor` in your blueprint can be configu
168168
- `confirm`, sets text for confirmation after clicking the button and before executing the command, can prevent the execution of the command if the user clicks `cancel` in the OS dialog
169169
- `command`, command like you would enter it in terminal, with [query language support](https://getkirby.com/docs/guide/blueprints/query-language) and page/file/user/site/data arguments
170170
- `cooldown`, time in milliseconds the message is flashed on the button (default: 2000)
171-
- `error`, set message on button to show onpa all **non-200**-status returns with query language support, also will print to `console.error()`
172-
- `warn`, print to `console.warn()`
173-
- `log`, print to `console.log()`
171+
- `error`, set message on button to show on all **non-200**-status returns with query language support, also will print to `console.error()`
174172
- `help`, set help of the button
175173
- `icon`, set the [icon](https://getkirby.com/docs/reference/panel/icons) of the button
176174
- `intab`, if `true` then use in combination with the `open`-option to open an URL in a new tab
@@ -187,7 +185,9 @@ In either the command or the callback you will be setting/returning data to the
187185
- `clipboard`, string to copy to clipboard
188186
- `color`, see `color`-field option
189187
- `download`, URL to start downloading
190-
- `error`, see `error`-field option
188+
- `error`, see `error`-field option, print to `console.error()`
189+
- `warn`, print to `console.warn()`
190+
- `log`, print to `console.log()`
191191
- `help`, see `help`-field option
192192
- `icon`, see `icon`-field option
193193
- `label`, see `label`-field option

0 commit comments

Comments
 (0)