remove logs and copy changes

This commit is contained in:
Peter Clement 2023-05-15 14:49:05 +01:00
parent 266465c8df
commit 27e78206c4
3 changed files with 5 additions and 8 deletions

View File

@ -20,8 +20,7 @@
let collectBlockExists = $selectedAutomation.definition.steps.some( let collectBlockExists = $selectedAutomation.definition.steps.some(
step => step.stepId === ActionStepID.COLLECT step => step.stepId === ActionStepID.COLLECT
) )
$: console.log($licensing)
$: console.log(syncWebhooksEnabled)
const disabled = { const disabled = {
SEND_EMAIL_SMTP: { SEND_EMAIL_SMTP: {
disabled: !$admin.checklist.smtp.checked, disabled: !$admin.checklist.smtp.checked,

View File

@ -151,7 +151,6 @@
bindings.push(stateBinding) bindings.push(stateBinding)
} }
}) })
// Get which indexes are asynchronous automations as we want to filter them out from the bindings // Get which indexes are asynchronous automations as we want to filter them out from the bindings
const asynchronousAutomationIndexes = actions const asynchronousAutomationIndexes = actions
.map((action, index) => { .map((action, index) => {
@ -174,7 +173,6 @@
} else { } else {
allBindings = eventContextBindings.concat(bindings) allBindings = eventContextBindings.concat(bindings)
} }
return allBindings return allBindings
} }
</script> </script>

View File

@ -54,6 +54,8 @@
) )
$: selectedSchema = selectedAutomation?.schema $: selectedSchema = selectedAutomation?.schema
$: error = parameters.timeout > 120 ? "Timeout must be less than 120s" : null
const onFieldsChanged = e => { const onFieldsChanged = e => {
parameters.fields = Object.entries(e.detail || {}).reduce( parameters.fields = Object.entries(e.detail || {}).reduce(
(acc, [key, value]) => { (acc, [key, value]) => {
@ -85,8 +87,6 @@
parameters.automationId = automationId parameters.automationId = automationId
parameters.synchronous = synchronous parameters.synchronous = synchronous
} }
$: error = parameters.timeout > 120 ? "Timeout must be less than 120s" : null
</script> </script>
<div class="root"> <div class="root">
@ -136,8 +136,8 @@
<Icon name="Info" /> <Icon name="Info" />
<div> <div>
<i <i
>This automation will run synchronously due to the existence of a >This automation will run synchronously as it contains a Collect
Collect block</i step</i
> >
</div> </div>
</div> </div>