diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js index 84e6033439..5252d4b06a 100644 --- a/packages/builder/src/builderStore/store/automation/index.js +++ b/packages/builder/src/builderStore/store/automation/index.js @@ -105,9 +105,7 @@ const automationActions = store => ({ }, select: automation => { store.update(state => { - let testResults = state.selectedAutomation?.testResults state.selectedAutomation = new Automation(cloneDeep(automation)) - state.selectedAutomation.testResults = testResults state.selectedBlock = null return state }) diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index 505a0b9aca..3e58b25ff6 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -14,7 +14,6 @@ } from "@budibase/bbui" export let automation - let testDataModal let blocks let confirmDeleteDialog @@ -41,66 +40,70 @@
-
-
-
- {automation.name} -
-
-
- -
-
+
+ {automation.name} +
+
+
+
+
+ +
+ { + testDataModal.show() + }} + icon="MultipleCheck" + size="M">Run test +
{ - testDataModal.show() + $automationStore.selectedAutomation.automation.showTestPanel = true }} - icon="MultipleCheck" - size="M">Run testTest Details
- {#each blocks as block, idx (block.id)} -
- {#if block.stepId !== "LOOP"} - - {/if} -
- {/each}
- - Are you sure you wish to delete the automation - {automation.name}? - This action cannot be undone. - - - - -
+
+ {#each blocks as block, idx (block.id)} +
+ {#if block.stepId !== "LOOP"} + + {/if} +
+ {/each} +
+ + Are you sure you wish to delete the automation + {automation.name}? + This action cannot be undone. + + + + + diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte deleted file mode 100644 index 9662bc8ade..0000000000 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/ResultsModal.svelte +++ /dev/null @@ -1,133 +0,0 @@ - - - -
- Test Results -
- {#if isTrigger || testResult[0].outputs.success} -
- -
- {:else} -
- -
- {/if} -
-
- - {#if testResult[0].outputs.iterations} -
- -
- -
-
- {/if} -
-
{ - inputToggled = !inputToggled - }} - class="toggle splitHeader" - > -
-
- - Input - -
-
-
- {#if inputToggled} - - {:else} - - {/if} -
-
- {#if inputToggled} -
-