Merge branch 'develop' into upgrade-axios

This commit is contained in:
Sam 2021-09-10 14:39:43 +02:00 committed by GitHub
commit 9a58e9e273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 3 deletions

View File

@ -226,7 +226,7 @@
}
}
},
"actions": {
"events": {
"type": "object",
"additionalProperties": false,
"properties": {

View File

@ -46,11 +46,11 @@ const ParagraphInput = ({ blockId, events, properties, methods, value }) => {
copyable={
type.isObject(properties.copyable)
? {
text: properties.copyable.test || value,
text: properties.copyable.text || value,
onCopy: () => {
methods.triggerEvent({
name: 'onCopy',
event: { value: properties.copyable.test || value },
event: { value: properties.copyable.text || value },
});
},
icon:

View File

@ -47,6 +47,21 @@ _ref:
```
Returns: `"George"`.
###### Use _get to as a switch statement to choose an Icon name:
```yaml
_get:
key:
_state: status
from:
new: PlusCircleTwoTone
escalated: ExclamationCircleOutlined
investigation_started: ToolTwoTone
client_contacted: SoundTwoTone
awaiting_confirmation: LikeOutlined
closed: StopOutlined
```
Returns: The icon corresponding to the status in state.
###### Get from an array (arrays are `0` indexed):
```yaml
_get: