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 }}
|
out:fly|local={{ x: 500, duration: 500 }}
|
||||||
>
|
>
|
||||||
{#if block.stepId !== ActionStepID.LOOP}
|
{#if block.stepId !== ActionStepID.LOOP}
|
||||||
<FlowItem {testDataModal} {block} />
|
<FlowItem {testDataModal} {block} {idx} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
export let block
|
export let block
|
||||||
export let testDataModal
|
export let testDataModal
|
||||||
|
export let idx
|
||||||
let selected
|
let selected
|
||||||
let webhookModal
|
let webhookModal
|
||||||
let actionModal
|
let actionModal
|
||||||
|
@ -208,7 +209,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<FlowItemHeader bind:blockComplete {block} {testDataModal} />
|
<FlowItemHeader bind:blockComplete {block} {testDataModal} {idx} />
|
||||||
{#if !blockComplete}
|
{#if !blockComplete}
|
||||||
<Divider noMargin />
|
<Divider noMargin />
|
||||||
<div class="blockSection">
|
<div class="blockSection">
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
export let showParameters = {}
|
export let showParameters = {}
|
||||||
export let testResult
|
export let testResult
|
||||||
export let isTrigger
|
export let isTrigger
|
||||||
|
export let idx
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (!testResult) {
|
if (!testResult) {
|
||||||
|
@ -71,12 +72,16 @@
|
||||||
</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">When this happens:</Body>
|
<Body size="XS">When this happens:</Body>
|
||||||
{:else}
|
{:else}
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
)
|
)
|
||||||
$automationStore.showTestPanel = true
|
$automationStore.showTestPanel = true
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Error testing notification")
|
notifications.error("Error testing automation")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
bind:showParameters
|
bind:showParameters
|
||||||
{block}
|
{block}
|
||||||
isTrigger={idx === 0}
|
isTrigger={idx === 0}
|
||||||
|
{idx}
|
||||||
testResult={filteredResults?.[idx]}
|
testResult={filteredResults?.[idx]}
|
||||||
/>
|
/>
|
||||||
{#if showParameters && showParameters[block.id]}
|
{#if showParameters && showParameters[block.id]}
|
||||||
|
|
Loading…
Reference in New Issue