2
0

feat(engine): 🚸 Improve input variable behaviour (for loops)

This commit is contained in:
Baptiste Arnaud
2022-03-10 12:05:34 +01:00
parent 2c1f69439b
commit 91239779f7
10 changed files with 199 additions and 17 deletions

View File

@ -41,6 +41,12 @@ export const GeneralSettingsForm = ({
isNewResultOnRefreshEnabled,
})
const handleInputPrefillChange = (isInputPrefillEnabled: boolean) =>
onGeneralSettingsChange({
...generalSettings,
isInputPrefillEnabled,
})
return (
<Stack spacing={6}>
<UpgradeModal isOpen={isOpen} onClose={onClose} />
@ -59,6 +65,13 @@ export const GeneralSettingsForm = ({
onChange={handleSwitchChange}
/>
</Flex>
<SwitchWithLabel
id="prefill"
label="Prefill input"
initialValue={generalSettings.isInputPrefillEnabled ?? true}
onCheckChange={handleInputPrefillChange}
moreInfoContent="Inputs are automatically pre-filled whenever its saving variable has a value"
/>
<SwitchWithLabel
id="new-result"
label="Create new session on page refresh"