Merge commit
This commit is contained in:
parent
f176d9d9fa
commit
94fc6d8b0f
|
@ -175,6 +175,11 @@
|
||||||
}
|
}
|
||||||
return allBindings
|
return allBindings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const toDisplay = eventKey => {
|
||||||
|
const type = actionTypes.find(action => action.name == eventKey)
|
||||||
|
return type?.displayName || type?.name
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DrawerContent>
|
<DrawerContent>
|
||||||
|
@ -200,7 +205,9 @@
|
||||||
<ul>
|
<ul>
|
||||||
{#each category as actionType}
|
{#each category as actionType}
|
||||||
<li on:click={onAddAction(actionType)}>
|
<li on:click={onAddAction(actionType)}>
|
||||||
<span class="action-name">{actionType.name}</span>
|
<span class="action-name">
|
||||||
|
{actionType.displayName || actionType.name}
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -231,7 +238,7 @@
|
||||||
>
|
>
|
||||||
<Icon name="DragHandle" size="XL" />
|
<Icon name="DragHandle" size="XL" />
|
||||||
<div class="action-header">
|
<div class="action-header">
|
||||||
{index + 1}. {action[EVENT_TYPE_KEY]}
|
{index + 1}. {toDisplay(action[EVENT_TYPE_KEY])}
|
||||||
</div>
|
</div>
|
||||||
<Icon
|
<Icon
|
||||||
name="Close"
|
name="Close"
|
||||||
|
|
Loading…
Reference in New Issue