Commit for enhancement #7138
*Added automation steps *Added steps for testing panel *Changed a testing panel error message as it didn't seem accurate
This commit is contained in:
parent
4d8485a413
commit
1b6c31ea4e
|
@ -84,7 +84,7 @@
|
|||
out:fly|local={{ x: 500, duration: 500 }}
|
||||
>
|
||||
{#if block.stepId !== ActionStepID.LOOP}
|
||||
<FlowItem {testDataModal} {block} />
|
||||
<FlowItem {testDataModal} {block} {idx} />
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
export let block
|
||||
export let testDataModal
|
||||
export let idx
|
||||
let selected
|
||||
let webhookModal
|
||||
let actionModal
|
||||
|
@ -208,7 +209,7 @@
|
|||
{/if}
|
||||
{/if}
|
||||
|
||||
<FlowItemHeader bind:blockComplete {block} {testDataModal} />
|
||||
<FlowItemHeader bind:blockComplete {block} {testDataModal} {idx} />
|
||||
{#if !blockComplete}
|
||||
<Divider noMargin />
|
||||
<div class="blockSection">
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
export let showParameters = {}
|
||||
export let testResult
|
||||
export let isTrigger
|
||||
export let idx
|
||||
|
||||
$: {
|
||||
if (!testResult) {
|
||||
|
@ -71,12 +72,16 @@
|
|||
</svg>
|
||||
{/if}
|
||||
<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}
|
||||
<Body size="XS">When this happens:</Body>
|
||||
{:else}
|
||||
<Body size="XS">Do this:</Body>
|
||||
{/if}
|
||||
|
||||
<Detail size="S">{block?.name?.toUpperCase() || ""}</Detail>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
)
|
||||
$automationStore.showTestPanel = true
|
||||
} catch (error) {
|
||||
notifications.error("Error testing notification")
|
||||
notifications.error("Error testing automation")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
bind:showParameters
|
||||
{block}
|
||||
isTrigger={idx === 0}
|
||||
{idx}
|
||||
testResult={filteredResults?.[idx]}
|
||||
/>
|
||||
{#if showParameters && showParameters[block.id]}
|
||||
|
|
Loading…
Reference in New Issue