diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte index 5c97d77ae8..13db389a2e 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/TestDataModal.svelte @@ -6,6 +6,7 @@ TextArea, Label, notifications, + ActionButton, } from "@budibase/bbui" import { automationStore, selectedAutomation } from "builderStore" import AutomationBlockSetup from "../../SetupPanel/AutomationBlockSetup.svelte" @@ -55,50 +56,70 @@ notifications.error(error) } } + + const toggle = () => { + selectedValues = !selectedValues + selectedJSON = !selectedJSON + console.log(selectedJSON) + } + let selectedValues = true + let selectedJSON = false - - - - - - - - JSON - - parseTestJSON(e)} - /> - - - - + + + Use values + Use JSON + + + + {#if selectedValues} + + + + {/if} + {#if selectedJSON} + + parseTestJSON(e)} + /> + + {/if}