|
|
@ -1,6 +1,5 @@ |
|
|
<script> |
|
|
<script> |
|
|
import mustache from "mustache" |
|
|
import mustache from "mustache" |
|
|
import { fade } from "svelte/transition" |
|
|
|
|
|
import { workflowStore } from "builderStore" |
|
|
import { workflowStore } from "builderStore" |
|
|
|
|
|
|
|
|
export let onSelect |
|
|
export let onSelect |
|
|
@ -16,11 +15,7 @@ |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<div |
|
|
<div class={`${block.type} hoverable`} class:selected on:click={selectBlock}> |
|
|
transition:fade |
|
|
|
|
|
class={`${block.type} hoverable`} |
|
|
|
|
|
class:selected |
|
|
|
|
|
on:click={selectBlock}> |
|
|
|
|
|
<header> |
|
|
<header> |
|
|
{#if block.type === 'TRIGGER'} |
|
|
{#if block.type === 'TRIGGER'} |
|
|
<i class="ri-lightbulb-fill" /> |
|
|
<i class="ri-lightbulb-fill" /> |
|
|
|