Afterthought

Remembered that idx === 0 is the same as isTrigger
This commit is contained in:
FlaminWrap 2022-11-05 00:20:38 +00:00
parent 1b6c31ea4e
commit 1cb89388a1
1 changed files with 2 additions and 5 deletions

View File

@ -72,14 +72,11 @@
</svg> </svg>
{/if} {/if}
<div class="iconAlign"> <div class="iconAlign">
{#if idx === 0}
<Body size="XS"><b>Trigger</b></Body>
{:else}
<Body size="XS"><b>Step {idx}</b></Body>
{/if}
{#if isTrigger} {#if isTrigger}
<Body size="XS"><b>Trigger</b></Body>
<Body size="XS">When this happens:</Body> <Body size="XS">When this happens:</Body>
{:else} {:else}
<Body size="XS"><b>Step {idx}</b></Body>
<Body size="XS">Do this:</Body> <Body size="XS">Do this:</Body>
{/if} {/if}
<Detail size="S">{block?.name?.toUpperCase() || ""}</Detail> <Detail size="S">{block?.name?.toUpperCase() || ""}</Detail>